[CentOS] OT - IP Tables - forwarding to localhost

Mon Jun 18 11:32:03 UTC 2007
David Hrbác( <hrbac.conf at seznam.cz>

Igor Demjanenko napsal(a):
> Hi,
> 
> Try this:
> 
> iptables -t nat -A PREROUTING -p tcp -d old_mailserver_ip
> --destination-port 25 -j DNAT --to-destination 127.0.0.1:25
> 

Try: iptables -t nat -A PREROUTING -p tcp -d old_mailserver_ip
--destination-port 25 -j DNAT --to-destination 127.0.0.1

Please do note ":25" missing.
David