I want to change the my datapackage from port 25 to another internal address(192.168.2.253).
iptables -A OUTPUT -o em1 -p tcp --dport 25 -j SNAT --to 192.168.2.253
But I get the output is:
root@gateway:~# iptables -A OUTPUT -o em1 -p tcp --dport 25 -j SNAT --to 192.168.2.253
iptables: Invalid argument. Run `dmesg' for more information.
how to do it correctly?
The dmesg output is: