[CentOS] OT - IP Tables - forwarding to localhost

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


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



More information about the CentOS mailing list