New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help setting up OpenVPN
I'm trying to setup OpenVPN using a guide I found on the internet.
It didn't work, of course
This particular command errors out:
host1 ~: iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE iptables: No chain/target/match by that name.
Tried the whole process on another VPS, got a different error:
host2 ~: iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE iptables v1.4.8: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.
Help ?
Comments
http://www.vpsdash.com/?p=163
Scroll to the last part on iptables , ignore the rest of that tutorial
Use snat instead of masquerade for Ovz.
What is your virtualization?
If it's OpenVZ maybe you have to enable the iptables modules by requesting to the host. Some host make it disabled until requested,
Thanks ! Got it working on VPS#1.
For VPS#2 with the error :
I assume this is something the Provider has to configure at the host node ... ?
edit : @ErawanArifNugroho, yes, it is OpenVZ
For Nat, try also ask for enabling the iptables, tun, tap, and maybe fuse or ppp from the host
Who is your provider? 123system?
I've enabled TUN/TAP & PPP from SolusVM.
And put in a ticket with the provider to make the required changes to iptables ...
edit : Provider fixed it in 10 minutes ... all working now