Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a network with an internal mail server and a linux proxy. I wonder if there's a way to tell iptables to route all internal SMTP (25) traffic (coming to proxy through eth1) to the external interface eth2?
It kinda depends on what rules you have before it. If you have a rule to drop all traffic on a certain port or range of ports on a certain interface, and the port and interface you need is included in that rule, it will be dropped before it even gets to your rule.
Thank you wildar, but it didn't work mail is still going through eth3... :-(
what do you think about the order idea?
Now I know the correct order is INPUT, FORWARD, OUTPUT so my guess is there should be a rule in INPUT that looks for port 25 and redirects it to FORWARD... I tried doing it but iptables says syntax is wrong:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.