Difference between revisions of "User:StasFomin/VZ"

From Wiki4Intranet
Jump to: navigation, search
(Created page with " 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")
 
Line 1: Line 1:
 
  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 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

Revision as of 16:36, 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