Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create a proxy NAT that will forward a port to a remote host. I have two interfaces: venet0:0 and venet0:18. I want to be able to forward connections from venet0:18 to venet0:0 and then out to a remote host.

I have tried this: and it does work but I cannot get it to forward the packets through my other interface (venet0:0).

share|improve this question

You're using OpenVZ, and doing NAT within an OpenVZ VPS container is tricky at best and often doesn't work right.

You can try asking your hosting provider to enable TUN/TAP support within your container.

If this fails to resolve the problem, you will probably have to use a different VPS based on different technology, such as KVM, VMware or Xen.

share|improve this answer
I have also tried to do it in VMware and it does not work. – Ryan Aug 3 '12 at 4:37
I should rephrase that. It DOES work but what I am trying to do is make the traffic tunnel through a different interface. – Ryan Sep 15 '12 at 22:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.