You are not logged in.

#1 2024-05-08 21:42:27

icelord
Member
Registered: 2024-04-10
Posts: 25

Openvpn says that there is no tun, but there is.

So I start openvpn as usual and I get this:

ERROR: Cannot open TUN/TAP /dev/net/tun: No such device (errno=19)

Then I check /dev/net/ and there it is:

tun

I don't even know where to start.

Offline

#2 2024-05-08 23:31:10

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Openvpn says that there is no tun, but there is.

How do you start openvpn?  If you start a service that could use a separate namespace or sand boxing that would prevent it seeing /dev/net/tun on the host.

Offline

#3 2024-05-09 11:46:07

icelord
Member
Registered: 2024-04-10
Posts: 25

Re: Openvpn says that there is no tun, but there is.

I am using Hack The Box VPN so I follow their instructions and:

sudo openvpn starting_point_bla_bla_bla

This always works so I don't know why the case could have been different this time?

Well anyway, It runs fine now but it would be nice to know why this happend.
Could this be a problem on openVPN's side? It fixed itself without a pacman -Syu.

Offline

#4 2024-05-09 12:44:12

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Openvpn says that there is no tun, but there is.

icelord wrote:

Well anyway, It runs fine now but it would be nice to know why this happend.

What fixed it?

Offline

#5 2024-05-09 19:25:14

icelord
Member
Registered: 2024-04-10
Posts: 25

Re: Openvpn says that there is no tun, but there is.

I am not sure, I just booted up my PC this morning and It worked.

Offline

#6 2024-05-09 19:39:01

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Openvpn says that there is no tun, but there is.

Possibly a kernel module mismatch that was fixed by the reboot?

Offline

#7 2024-05-10 12:05:26

icelord
Member
Registered: 2024-04-10
Posts: 25

Re: Openvpn says that there is no tun, but there is.

Interesting, have you had any run-ins with something like this?

Offline

#8 2024-05-10 22:35:06

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Openvpn says that there is no tun, but there is.

Never encountered "No such device (errno=19)" when the device node is there.

Offline

Board footer

Powered by FluxBB