I'm trying to set up a small VPN on my virutal server so that I can have a reasonably secure connection to the internet and my VPS when I'm traveling and on an untrusted network. I have the VPN set up with openvpn, and everything is working (I can connect to the VPN and see my VPS and the other machines connected to the VPN.)
I can't, however, seem to get NAT working so that my machine on the private 172.23.5.0/24 subnet can access the internet via the VPN. Technical support said the Virtuozzo kernel has support for NAT, but when I try to add a rule for it, using the following command:
iptables -t nat -A POSTROUTING -s 172.23.5.0/24 -o venet00 -j MASQUERADE
I get this error:
iptables v1.3.0: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
which seems to indicate that the kernel in fact does not have NAT support. Is that the case, or am I doing something wrong?


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks