You are not logged in.

#1 2024-02-04 16:41:56

ram0042
Member
Registered: 2013-11-02
Posts: 3

openvpn works fine, unless after kernel update

Hello:

My openvpn works fine and all, unless I run the package updater and there's a linux package update. The update goes on as expected. When I come back to retry a openvpn connection command I receive the following error:

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

I reboot and everything's back to normal. Until there's another kernel update.

Is this normal? What can I do?

Thank you,
ram0042

Last edited by ram0042 (2024-02-04 16:43:31)

Offline

#2 2024-02-04 16:46:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,566

Re: openvpn works fine, unless after kernel update

Yes, it's normal. After a kernel update without a reboot, you can't load any kernel modules as they're not on disk anymore. Load tun module at boot (using modules-load.d) or there are hooks that can keep the old modules around.

Offline

#3 2024-02-04 17:38:41

ram0042
Member
Registered: 2013-11-02
Posts: 3

Re: openvpn works fine, unless after kernel update

Scimmia wrote:

Load tun module at boot (using modules-load.d) or there are hooks that can keep the old modules around.

Thanks for the tip Scimmia!

Will try this today.

Offline

Board footer

Powered by FluxBB