Back to OpenVZ Documentation

    Enabling TUN/TAP

    Enable virtual network interfaces for VPN and networking applications.

    What is TUN/TAP?

    TUN and TAP are virtual network kernel interfaces that operate at different layers:

    • TUN (network TUNnel) - Operates at the network layer (Layer 3), handling IP packets
    • TAP (network TAP) - Operates at the data link layer (Layer 2), handling Ethernet frames

    TUN/TAP is essential for:

    • VPN servers (OpenVPN, WireGuard)
    • Virtual networking
    • Network bridging
    • Custom routing scenarios

    Enabling TUN/TAP in SolusVM

    You can enable TUN/TAP on your OpenVZ VPS directly from the SolusVM control panel:

    1

    Log into SolusVM

    2

    Select Your VPS

    Select your OpenVZ VPS from the Virtual Servers list

    3

    Access Manage Menu

    Click on "Manage" in the top menu

    4

    Find TUN/TAP Settings

    Look for "TUN/TAP" or "Network Settings" section

    5

    Enable TUN/TAP

    Click the "Enable" button next to TUN/TAP

    6

    Wait for Confirmation

    Wait for the confirmation message

    Verifying TUN/TAP is Enabled

    After enabling TUN/TAP, you can verify it's working by checking for the device:

    # Check if TUN device exists
    cat /dev/net/tun
    
    # Expected output: "cat: /dev/net/tun: File descriptor in bad state"
    # This means TUN/TAP is properly enabled

    Using TUN/TAP with OpenVPN

    Once TUN/TAP is enabled, you can install and configure OpenVPN:

    # Debian/Ubuntu
    apt-get install openvpn
    
    # CentOS/RHEL
    yum install openvpn

    Note

    TUN/TAP can be enabled instantly from the SolusVM control panel without needing to contact support or reboot your VPS in most cases.