Re: iptables - forwading web to another pc and on different port

From: Kasper Dupont (kasperd@daimi.au.dk)
Date: 06/17/02


From: Kasper Dupont <kasperd@daimi.au.dk>
Date: Mon, 17 Jun 2002 21:04:06 +0200

Me wrote:
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp -d 5.6.7.8--dport 80 -j
> DNAT --to-destination 192.168.31.2:8080

The iptables man page specifies:
--to-destination <ipaddr>[-<ipaddr>][:port-port]"
So it does look like the right syntax might be
--to-destination 192.168.31.2:8080-8080

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:razor-report@daimi.au.dk