PINE64
OpenVPN will not start Cannot open TUN/TAP dev /dev/net/tun: No such file or director - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101)
+--- Thread: OpenVPN will not start Cannot open TUN/TAP dev /dev/net/tun: No such file or director (/showthread.php?tid=7431)



OpenVPN will not start Cannot open TUN/TAP dev /dev/net/tun: No such file or director - frewind - 04-28-2019

Hi,

I've install OpenVPN, but I cannot get it to start as it throws the error "ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)"

I searched the forum and found an old rock64 post which said the kernel module for /dev/net/tun was not on the system, so I ran

Code:
$sudo modprobe tun
modprobe: FATAL: Module tun not found in directory /lib/modules/4.4.171

I take it I'm going to have to compile the kernel module for /dev/net/tun, is there a quick way to do that or do I need to do the complete kernel build?