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

Been trying to run

iptables -t nat -A POSTROUTING -s -o venet0:0 -j MASQUERADE

and I keep getting the above error message. Trying to set up openvpn on my server.

Does anyone have any idea how to solve this?

share|improve this question
up vote 1 down vote accepted

firstly, venet0:0 is not valid, just use venet0, iptables does not care about interface labels.

The error itself is down to the fact that either you do not have the nat table kernel module loaded or you do, but don't have MASQUERADE.

Since this is OpenVZ, you would need to ask your host to provide it.

share|improve this answer
ok, thanks :) found the solution here in case anyone needs it in future – laurenceputra Jan 21 '13 at 13:01

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.