iptables -A OUTPUT -p icmp -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT
iptables -t nat -A PREROUTING -p udp -d 192.168.83.202 --dport 5000 -j DNAT --to-destination 192.168.0.127:5000
iptables -t nat -A POSTROUTING -p udp -s 192.168.0.127 --sport 5000 -j SNAT --to-source 192.168.83.202:5000
iptables -t nat -A POSTROUTING -s 192.168.0.100/255.255.255.0 -o eth1 -j MASQUERADE
iptables-save
service iptables start
vi /etc/profile 还是没效果!! |