Linux: TUN/TAP Support on a VPS Server

Posted on 2011-10-16
Last Modified: 2013-12-15
I am trying to install openvpn on a VPS server but I am having trouble because tun module is not available.

I get the following error message when trying to start openvpn

Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)

This indicates that tun module is not loaded

When I try to run depmod, I get the following error:

WARNING: Couldn't open directory /lib/modules/2.6.18-194.8.1.el5.028stab070.5: No such file or directory
FATAL: Could not open /lib/modules/2.6.18-194.8.1.el5.028stab070.5/modules.dep.temp for writing: No such file or directory

I have root access to this server, but it is a VPS server, not a dedicated server.

Is there a way for me to get TUN/TAP working?

uname returns:
Question by:hankknight
    LVL 21

    Expert Comment

    Is your VPS provider using OpenVZ?  If so they will need to enable the module for your container.
    LVL 16

    Author Comment

    Is there a way from my command line to tell if they are using OpenVZ?
    LVL 21

    Accepted Solution

    LVL 20

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now