masquerade in openvz [message #48915] |
Wed, 16 January 2013 02:08 |
raggybaby
Messages: 1 Registered: January 2013
|
Junior Member |
|
|
Hi I'm new to open vz i usually use xen im having issues with masquerading.
So far for xen it should be done like this:
Quote:
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 9999 -j DNAT --to-destination ip:port
for post routing / masquerade it's done like this:
iptables -t nat -A POSTROUTING -p tcp -m tcp --dport port -j MASQUERADE
iptables -t nat -A POSTROUTING -j MASQUERADE
prerouting worked but the thing is postrouting doesn't.
how can i do this in open vz with the same results?
|
|
|