[SOLVED] iptables change in -current, whats new --to-source equivalent?
by avian from LinuxQuestions.org on (#5524P)
Since one of the newer -current updates, an iptables SNAT command I usually use on start up seems to have gone awry.
Code:iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth5 -j SNAT --to-source 1.2.3.4now gives the error -:
Code:iptables v1.8.5 (legacy): unknown option "--to-source"
Try `iptables -h' or 'iptables --help' for more information.
So my question is.... whats the latest most acceptable way to pass the command without using the --to-source option?


Code:iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth5 -j SNAT --to-source 1.2.3.4now gives the error -:
Code:iptables v1.8.5 (legacy): unknown option "--to-source"
Try `iptables -h' or 'iptables --help' for more information.
So my question is.... whats the latest most acceptable way to pass the command without using the --to-source option?