How to create tun device for OpenVPN in (B)LFS 9.0 System V?
by bionor from LinuxQuestions.org on (#4W4DN)
Hey guys :)
I've been trying for a while to get a working VPN in my LFS build. I've installed bridge-utils (although not sure if needed or how to use it), IProute2 and Openvpn. I've enabled the universal tun/tap driver in the kernel with (*) not (m) if that's relevant info.
I've read various info on the web and tried the following:
Code:root@bioLinux[/home/bio]# mkdir /dev/net
root@bioLinux[/home/bio]# mknod /dev/net/tun c 10 200
root@bioLinux[/home/bio]# chmod 0666 /dev/net/tun
root@bioLinux[/home/bio]# modprobe tun
root@bioLinux[/home/bio]# openvpn --mktun --dev tun0With the following result:
Code:Thu Dec 5 14:55:23 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Thu Dec 5 14:55:23 2019 Exiting due to fatal errorModinfo tun reveals driver is not loaded:
Code:root@bioLinux[/home/bio]# modinfo tun
modinfo: ERROR: Module tun not found.What is the proper procedure for creating a tun device for working VPN in LFS (SysV)?


I've been trying for a while to get a working VPN in my LFS build. I've installed bridge-utils (although not sure if needed or how to use it), IProute2 and Openvpn. I've enabled the universal tun/tap driver in the kernel with (*) not (m) if that's relevant info.
I've read various info on the web and tried the following:
Code:root@bioLinux[/home/bio]# mkdir /dev/net
root@bioLinux[/home/bio]# mknod /dev/net/tun c 10 200
root@bioLinux[/home/bio]# chmod 0666 /dev/net/tun
root@bioLinux[/home/bio]# modprobe tun
root@bioLinux[/home/bio]# openvpn --mktun --dev tun0With the following result:
Code:Thu Dec 5 14:55:23 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Thu Dec 5 14:55:23 2019 Exiting due to fatal errorModinfo tun reveals driver is not loaded:
Code:root@bioLinux[/home/bio]# modinfo tun
modinfo: ERROR: Module tun not found.What is the proper procedure for creating a tun device for working VPN in LFS (SysV)?