ubuntu的iptables

https://help.ubuntu.com/community/IptablesHowTo#Configuration_on_startup

sudo sh -c "iptables-save > /etc/iptables.rules"
sudo sh -c "iptables-save > /home/asheng/etc/iptables.rules.1"
sudo iptables -t nat -A PREROUTING -p tcp -m tcp -i eth0 --dport 3389 -j DNAT --to-destination 192.168.122.80:3389
iptables -t nat -A PREROUTING -p tcp -m tcp -i eth0 --dport 3389 -j DNAT --to-destination 192.168.122.80:3389

飞儿传媒www.firadio.com
原文地址:https://www.cnblogs.com/firadio/p/3438066.html