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

 

 

posted on 2013-11-22 18:05  飞儿传媒  阅读(286)  评论(0编辑  收藏  举报
飞儿传媒