Re: DNAT to localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le jeudi 15 décembre 2005 à 15:08 +0100, Steverding, Kai a écrit :
> iptables -t nat -I PREROUTING -p tcp -i eth0 -d 192.168.10.1/32 --dport 110
> -j DNAT --to-destination 127.0.0.1

Not a solution to you, but a hint. REDIRECT target is just made for
this.

iptables -t nat -I PREROUTING -p tcp -i eth0 -d 192.168.10.1/32 \
			--dport 110 -j REDIRECT


-- 
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
>> Hi! I'm your friendly neighbourhood signature virus.
>> Copy me to your signature file and help me spread!



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux