Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.