Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

OpenVPN - cannot load tun module

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
xaver.ravex
Posts: 2
Joined: 2015-12-16 08:16

OpenVPN - cannot load tun module

#1 Post by xaver.ravex »

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-l ... -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/ ... -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

reinob
Posts: 1196
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: OpenVPN - cannot load tun module

#2 Post by reinob »

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.

xaver.ravex
Posts: 2
Joined: 2015-12-16 08:16

Re: OpenVPN - cannot load tun module

#3 Post by xaver.ravex »

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.

Post Reply