OpenVPN - cannot load tun module

Kernels & Hardware, configuring network, installing services

OpenVPN - cannot load tun module

Postby xaver.ravex » 2015-12-16 08:22

Hello,

I have recently rented a VPS server so I can run a VPN. Unfortunately, I did not get far in this https://howto.biapy.com/en/debian-gnu-linux/servers/various/install-and-setup-openvpn-on-debian howto, I have encountered this error:

Code: Select all
xaver@xaver:/$ sudo modprobe tun
ERROR: could not insert 'tun': Unknown symbol in module, or unknown parameter (see dmesg)


so I googled this error and found this: https://www.digitalocean.com/community/questions/modprobe-tun-error-could-not-insert-tun-unknown-symbol-in-module, however response of mine VPS was:


Code: Select all
xaver@xaver:/$ ls /lib/modules/uname -r /kernel/drivers/net/tun.*
ls: cannot access /lib/modules/uname: No such file or directory
ls: cannot access /kernel/drivers/net/tun.*: No such file or directory


so... is there any way I can turn this around and make it work? Thank you for your answers!


Code: Select all
xaver@xaver:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.9 (wheezy)
Release:        7.9
Codename:       wheezy

xaver@xaver:/$ uname -a
Linux xaver 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u1 x86_64 GNU/Linux
xaver.ravex
 
Posts: 2
Joined: 2015-12-16 08:16

Re: OpenVPN - cannot load tun module

Postby reinob » 2015-12-16 14:53

xaver.ravex wrote:... I have encountered this error:

Code: Select all
xaver@xaver:/$ sudo modprobe tun
ERROR: could not insert 'tun': Unknown symbol in module, or unknown parameter (see dmesg)



Are you using your own (distribution) kernel or does your hoster provide one?
Some hosters use a static kernel (no support for loadable modules). If so, you need to either ask to include the tun module, or check if you can use your own kernel.

Code: Select all
xaver@xaver:/$ ls /lib/modules/uname -r /kernel/drivers/net/tun.*
ls: cannot access /lib/modules/uname: No such file or directory
ls: cannot access /kernel/drivers/net/tun.*: No such file or directory



It's not "ls /lib/modules/uname -r". You want something like:
Code: Select all
ls /lib/modules/$(uname -r)/kernel/drivers/net/tun*


It's very important to type things correctly. Otherwise you may easily destroy your installation.
reinob
 
Posts: 740
Joined: 2014-06-30 11:42

Re: OpenVPN - cannot load tun module

Postby xaver.ravex » 2015-12-16 14:59

Okay, I will check with my provider which of those kernels I may choose contains tun module or if they can include it. I will check in here once I get response.
xaver.ravex
 
Posts: 2
Joined: 2015-12-16 08:16


Return to System configuration

Who is online

Users browsing this forum: Head_on_a_Stick and 8 guests

fashionable