Article 4W4DN How to create tun device for OpenVPN in (B)LFS 9.0 System V?

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)?latest?d=yIl2AUoC8zA latest?i=aNQaNHFC9PM:EusYKcmxILc:F7zBnMy latest?i=aNQaNHFC9PM:EusYKcmxILc:V_sGLiP latest?d=qj6IDK7rITs latest?i=aNQaNHFC9PM:EusYKcmxILc:gIN9vFwaNQaNHFC9PM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments