Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Help setting up OpenVPN
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.

Help setting up OpenVPN

WhoaWhoa Member
edited October 2012 in General

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

    Thanked by 2Whoa someJoe
  • Use snat instead of masquerade for Ovz.

    Thanked by 1Whoa
  • 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,

  • WhoaWhoa Member
    edited October 2012

    Thanks ! Got it working on VPS#1.

    For VPS#2 with the error :

    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.

    I assume this is something the Provider has to configure at the host node ... ?

    edit : @ErawanArifNugroho, yes, it is OpenVZ

  • @Whoa said: I assume this is something the Provider has to configure at the host node ... ?

    For Nat, try also ask for enabling the iptables, tun, tap, and maybe fuse or ppp from the host :)

    Who is your provider? 123system?

    Thanked by 1Whoa
  • WhoaWhoa Member
    edited October 2012

    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 :)

    Thanked by 1ErawanArifNugroho
Sign In or Register to comment.