Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I wanted to route my private PCs traffic through my VPS and set up my OpenVPN as fas as necessary but now I have the problem that I can't set iptables, since NAT support is disabled for my server's kernel. The command I would have used is

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

Now is there a way to implement the behaviour without NAT iptables rules?

share|improve this question
    
Depending on the traffic you're trying to push, maybe Squid? –  cjc Dec 6 '12 at 21:18

1 Answer 1

It's possible you don't have the necessary modules loaded, try loading them with

modprobe nf_nat

modprobe ipt_MASQUERADE

If this doesn't work it shouldn't be terribly difficult to recompile your kernel with support for nat

share|improve this answer

Your Answer

 
discard

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.