Posted: Wed May 01, 2013 5:33 Post subject: Port forward smtp using iptables rules
I'd like to use iptables rules to port forward from my router to my internal smtp server but for the life of me I can't seem to get it visible on the internet. Using the dd-wrt port forwarding UI I can get it working fine though.
The reason I want to use iptables directly is because I eventually want to lock down my port since my domain's email routes through an external mail service (no-ip), which in turn routes to my mail server, so their servers are the only ones which should legitimately connect to my smtp server.
To start I'm just trying to make it wide open and once I get that working I will tweak the rules to restrict what it will accept connections from.
Here is an example of what I've tried (and I've tried many variants on this).
Mine doesn't. Like I said, port forwarding works fine if I configure it from the dd-wrt UI. I'm apparently doing something wrong with my iptables commands though.