hwdsl2 / openvpn-install

OpenVPN server installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, openSUSE, Amazon Linux 2 and Raspberry Pi OS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bash openvpn.sh cant detect TUN device

sec13b opened this issue · comments

Error:

The TUN device is not available
You need to enable TUN before running this script

can you add the solve solution .
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun

thank you

@sec13b Hello! Thank you for your suggestion. /dev/net/tun is usually already available on servers, except for some OpenVZ VPS, in which cases it can be enabled using the server provider's control panel. Please refer to related issues Nyr/openvpn-install#560 and Nyr/openvpn-install#459.

on my vps , after restart tun missing or is deleted automatically, i dnt know