How to enable TUN/TAP on VPS

Posted on

TUN or TUNnel is very similar to ethernet device or we can call it “virtual interface”, mostly required for some VPN protocols like OpenVPN, to route network traffic both sending and receiving. Thus, you have to enable TUN if you want to install VPN.

  1. Grab a free VPS from Hax.co.id,  this is my free VPS from hax:
  2. Check this tutorial for how to connect to ipv6 vps
  3. On terminal type this command to check current status of TUN/TAP
    cat /dev/net/tun

    if the result is cat: /dev/net/tun: No such file or directory
    that mean tun/tap is disable

  4. Go to menu “VPS Control” on Hax
  5.  Scroll down and click “Enable TUN”
  6.  Next, restart your vps and check the status via ssh again
    cat /dev/net/tun

    it should return: cat: /dev/net/tun: File descriptor in bad state
    this mean TUN/TAP has enabled, you can install VPN now.

See also  How to Install Trojan on IPv6 VPS