Hi all. Going nuts here. I issue the following command from the cli:
iptables -t nat -A PREROUTING -p tcp --dport 25 -j DNAT --to x.x.x.x:pp
This forwards all traffic heading to port 25 to my external mail server.
What I am expecting to get is:
-A PREROUTING -p tcp --dport 25 -j DNAT --to-destination x.x.x.x:pp
Instead I get:
-A PREROUTING -p tcp -m tcp --dport 25 -j DNAT --to-destination x.x.x.x:pp
Where is the "-m tcp" coming from? How do I prevent it?
Thanks.
[link] [4 comments]