Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenVPN TUN error, but TUN is compiled into kernel [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tsftd
n00b
n00b


Joined: 21 May 2011
Posts: 19
Location: Here

PostPosted: Wed Oct 10, 2012 7:06 am    Post subject: OpenVPN TUN error, but TUN is compiled into kernel [SOLVED] Reply with quote

So I'm trying to set up an OpenVPN server, and am following the tutorial here: http://en.gentoo-wiki.com/wiki/OpenVPN

I have compiled my kernel with TUN/TAP support, but have removed the module option -- so I compiled it directly into the kernel:

Code:
Device Drivers --->
   Network device support --->
[*]Network device support
<*>   Universal TUN/TAP device driver support


Yet, when I try to start OpenVPN, I get the following error:
Code:
linux # /etc/init.d/openvpn start
 * Starting openvpn ...
FATAL: Module tun not found.
 * TUN/TAP support is not available in this kernel
 * ERROR: openvpn failed to start


I have googled extensively, but unfortunately hits about people getting that error who *haven't* compiled TUN/TAP support flood out anyone who may have had the same issue as me. Does anyone know what could cause this? Or how I can confirm that TUN/TAP support is actually being built into the kernel/available? (I have double checked both menuconfig and the .config file, and it IS enabled)

for troubleshooting purposes, I have heavily modified the .config and have disabled everything that is non-essential (given that this is a production server), but I have no other issues on this system. It's possible that I have disabled something else that is required for TUN/TAP (despite not being listed under menuconfig), so here is my full config in pastebin: http://pastebin.com/24UL7Pj5

thanks for the help!


Last edited by tsftd on Thu Oct 11, 2012 10:10 am; edited 1 time in total
Back to top
View user's profile Send private message
b0nafide
Apprentice
Apprentice


Joined: 17 Feb 2008
Posts: 153
Location: ~/

PostPosted: Wed Oct 10, 2012 6:08 pm    Post subject: Reply with quote

Try
Code:
# dmesg | grep TUN
# ls -l /dev/net/tun
Back to top
View user's profile Send private message
tsftd
n00b
n00b


Joined: 21 May 2011
Posts: 19
Location: Here

PostPosted: Thu Oct 11, 2012 12:17 am    Post subject: Reply with quote

dmesg | grep TUN -> returns nothing
ls -l /dev/net/tun -> no such file or directory (in fact, there isn't even a /dev/net/ directory)

i'm particularly worried that something in
Code:
networking support-->
      networking options-->
            TCP/IP networking

is a hidden dependency, maybe something under advanced routing?

EDIT:

also, here is a pastebin of the actual kernel compilation. not sure if it's helpful, but http://pastebin.com/yLaqmF8G


Last edited by tsftd on Thu Oct 11, 2012 1:46 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8987

PostPosted: Thu Oct 11, 2012 1:22 am    Post subject: Reply with quote

You are not using devtmpfs, so your device manager will need to create the net/tun node.
Back to top
View user's profile Send private message
tsftd
n00b
n00b


Joined: 21 May 2011
Posts: 19
Location: Here

PostPosted: Thu Oct 11, 2012 10:09 am    Post subject: Reply with quote

that is absolutely correct, compiling that (and automount) into the kernel fixed the issue. thanks a bunch!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum