Article 5524P [SOLVED] iptables change in -current, whats new --to-source equivalent?

[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?latest?d=yIl2AUoC8zA latest?i=WzAMDsCjnHQ:jiHj4a1P4YU:F7zBnMy latest?i=WzAMDsCjnHQ:jiHj4a1P4YU:V_sGLiP latest?d=qj6IDK7rITs latest?i=WzAMDsCjnHQ:jiHj4a1P4YU:gIN9vFwWzAMDsCjnHQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments