OpenVZ Forum


Home » General » Support » masquerade in openvz (problem regarding masquerade)
icon9.gif  masquerade in openvz [message #48915] Wed, 16 January 2013 02:08
raggybaby is currently offline  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?

 
Read Message icon9.gif
Previous Topic: Update problem
Next Topic: 2.6.32-042stab068.8 Memory / Swap Strangeness
Goto Forum:
  


Current Time: Sun Sep 07 08:35:35 GMT 2025

Total time taken to generate the page: 0.24314 seconds