[CentOS] OT - IP Tables - forwarding to localhost

first last prelude_2_murder at yahoo.co.uk
Mon Jun 18 10:46:42 UTC 2007


I am trying to set up a firewall rule so calls to old_mailserver:25 get
redirected to localhost:25. I have seen quite a few rules and none seem
to work.

I have tried with the firewall enabled (configured to allow smtp) and
disabled, but it doesn't seem to make a difference.

One of the commands I have been using is:
/sbin/iptables -t nat -I PREROUTING -p tcp -d old_mailserver_ip/32
--dport 25 -j REDIRECT --to

Am I missing anything?



Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

More information about the CentOS mailing list