I have a problem with openvpn. I have already setup openvpn sucessfully on some other servers in the past (basic configuration, nothing special). On this server, I used the same config file, but for setting up nat iptables -t nat -A POSTROUTING -s 10.4.0.0/24 -o eth0 -j MASQUERADE doesn't work. It gives error: iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. How do I fix this error? Also, if I can't fix this error, can I do bridging instead of routing? I have only 1 interface, and I can connect to remote server only via ssh (and need to avoid reboots if at all possible) so if briding means a whole ethernet card has to be devoted to the openvpn (and no other servers) then briding is out, otherwise I can use briding. Do you know of a simple, step by step guide to configure openvpn briding (just simple openvpn server and clients that can access internet through vpn server, nothing fancy)?
-
What distro are you using? Is it the same as on the other server(s)? Is the ip_tables module loaded?
And all assumptions aside, are you acting as root when you run this?
From jrod -
I'm going to hazard a guess here - is this a virtual host? Reason I ask is that some methods of virtualisation (such as LVM and the like) boot the kernel directly, so you can't replace the kernel from within the guest like you can with a normal machine, which is especially annoying if the kernel's been built without module support.
If it's not, you should be able to rebuild the kernel and either compile in iptables support, or build it as a module.
From Andy Smith
0 comments:
Post a Comment