Re: iptables problem with port translation
- From: आशीष Ashish <wahjava@xxxxxxxxx>
- Date: Thu, 01 Nov 2007 00:41:16 +0530
jblumenkrantz@xxxxxxxxx wrote:
[...]
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 --dst #{ip} --
dport 80 -j DNAT --to-destination #{ip}:8080
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 --dst #{ip} --
dport 443 -j DNAT --to-destination #{ip}:8443
I've not tried your rules, but what about REDIRECTing instead of DNATing, hmm...
--
Ashish Shukla
http://wahjava.wordpress.com/
.
- Follow-Ups:
- Re: iptables problem with port translation
- From: jblumenkrantz
- Re: iptables problem with port translation
- References:
- iptables problem with port translation
- From: jblumenkrantz
- iptables problem with port translation
- Prev by Date: Re: ARP packets usage
- Next by Date: Re: Port Mirroring in Linux
- Previous by thread: iptables problem with port translation
- Next by thread: Re: iptables problem with port translation
- Index(es):