2015/Nov/05

iptables -t nat -A POSTROUTING -j MASQUERADE

iptables -t nat -A PREROUTING -s 192.168.1.1 -p tcp --dport 1111 -j DNAT --to-destination 2.2.2.2:1111

 

ถ้าไปทุกสิ่งอัน

 

iptables -t nat -A PREROUTING -d 192.168.1.1 -p tcp -j DNAT --to-destination 2.2.2.2

Comment

Comment:

Tweet