iptables

iptables -t nat -D PREROUTING -s 192.168.1.108 -i wlan0 -p tcp --dport 554 -j DNAT --to-destination 10.7.36.221:554                                                                                         
iptables -t nat -D POSTROUTING -p tcp -d 10.7.36.221 --dport 554 -o eth0 -j MASQUERADE


iptables -t nat -A PREROUTING -s 192.168.1.108 -i wlan0 -p tcp --dport 554 -j DNAT --to-destination 10.7.36.221:554
iptables -t nat -A POSTROUTING -p tcp -d 10.7.36.221 --dport 554 -o eth0 -j MASQUERADE

 

 

posted @ 2016-06-06 20:50  静之深  阅读(172)  评论(0编辑  收藏  举报