Difference between revisions of "User:StasFomin/VZ"

From Wiki4Intranet
Jump to: navigation, search
Line 2: Line 2:
  
 
  iptables -t nat -A POSTROUTING -s 10.11.0.5 -o eth0 -j SNAT --to 85.143.219.9
 
  iptables -t nat -A POSTROUTING -s 10.11.0.5 -o eth0 -j SNAT --to 85.143.219.9
 +
 +
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Revision as of 22:35, 15 September 2015

iptables -t nat -A PREROUTING -p tcp -d 85.143.219.9 --dport 8085 -i eth0 -j DNAT --to-destination 10.11.0.5:80
iptables -t nat -A POSTROUTING -s 10.11.0.5 -o eth0 -j SNAT --to 85.143.219.9
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE