LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-21-2015, 09:10 PM   #1
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
/dev/net missing in Current's Fri Nov 20 21:52:15 UTC 2015 update


Updated two boxes and openvpn refuse to start on both because /dev/net/tun was missing. Any chance this is related to the switch to eudev? I got vpn running again by creating the tun node with:
Code:
mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 666 /dev/net/tun
 
Old 11-21-2015, 10:11 PM   #2
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Note this post in a related thread...

https://www.linuxquestions.org/quest...ml#post5453292
 
Old 11-22-2015, 09:53 AM   #3
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
Pat's solution worked on another upgrade. But why does the tun module have to be loaded manually now? How was it loaded with the prior?
 
Old 11-22-2015, 09:58 AM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
tun probably isn't loaded unless needed by the hardware. This is the case with a lot of extra drivers used by hardware, but not specifically critical to function.

One that comes to mind is snd_emu10k1 and snd_emu10k1_synth. If you have a SoundBlaster Live series audio card, snd_emu10k1 will be loaded, but the Midi Synthesizer driver will not be autoloaded, and will require using a modprobe call in rc.local to load the driver for usage with midi playback software.
 
Old 11-22-2015, 12:36 PM   #5
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
What I can't figure out is what module dependency caused the tun model to be loaded before the recent current update. I have no hardware that's dependent on tun, however, it needs to be loaded for VPN.
 
Old 11-22-2015, 01:09 PM   #6
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by tux_dude View Post
Updated two boxes and openvpn refuse to start on both because /dev/net/tun was missing. Any chance this is related to the switch to eudev? I got vpn running again by creating the tun node with:
Code:
mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 666 /dev/net/tun
Not create anything but load module tun first :-)

modprobe tun.
 
Old 11-22-2015, 01:30 PM   #7
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by BratPit View Post
Not create anything but load module tun first :-)

modprobe tun.
Got that. But I want to NOT have to load the module manually.
 
Old 11-22-2015, 01:45 PM   #8
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Uncomment it or add to rc.modules .

or if you connect by Network Manager, it loads automatically too.

Last edited by BratPit; 11-22-2015 at 01:53 PM.
 
Old 11-22-2015, 01:52 PM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
If /dev/net/tun exists, does starting openvpn load the tun module?

Maybe openvpn needlessly checks the existence of /dev/net/tun and exits with an error when everything would work if it just proceeded.

Anyway, it wouldn't be a big deal to have eudev create /dev/net/tun (and maybe /dev/ppp as well, since those are the only important missing nodes). Both of those are created when the kernel modules for them are loaded, but maybe other things expect the nodes in /dev before that happens. It might be safer to just make sure things are like they were before.
 
Old 11-22-2015, 03:06 PM   #10
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by volkerdi View Post
If /dev/net/tun exists, does starting openvpn load the tun module?

Maybe openvpn needlessly checks the existence of /dev/net/tun and exits with an error when everything would work if it just proceeded.
Openvpn stops immediately if /dev/net/tun is not present. Agreed, it should proceed or even load the module itself.

Quote:
Originally Posted by volkerdi View Post
Anyway, it wouldn't be a big deal to have eudev create /dev/net/tun (and maybe /dev/ppp as well, since those are the only important missing nodes). Both of those are created when the kernel modules for them are loaded, but maybe other things expect the nodes in /dev before that happens. It might be safer to just make sure things are like they were before.
I haven't been able to find any major diff with the current update that would prevent tun from loading (still digging into it). I thought /lib/udev/rules.d/50-udev-default.rules would have loaded tun when udev started with this line
Code:
KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
 
Old 11-22-2015, 04:53 PM   #11
kazzan
LQ Newbie
 
Registered: Oct 2010
Distribution: Gentoo Linux, Slackware ARM
Posts: 27

Rep: Reputation: 41
Quote:
Originally Posted by volkerdi View Post
If /dev/net/tun exists, does starting openvpn load the tun module?
It does.
On my Arch box (udev 227), /dev/net/tun always exists even without the tun module being loaded.
OpenVPN loads tun dynamically.

Thanks for your reply in the other thread btw :-)
 
Old 11-22-2015, 06:01 PM   #12
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Fixed. /dev/ppp was the other obvious static node that always existed with udev, but isn't created with eudev until the ppp_generic module is loaded. Maybe it should get the same treatment?

Code:
Sun Nov 22 23:37:53 UTC 2015
a/eudev-3.1.5-x86_64-5.txz:  Rebuilt.
  Add eudev startup message for kmsg.  Thanks to Richard Narron.
  Blacklist some more watchdog modules to work around broken hardware.
  Thanks to Robby Workman.
  Added /dev/net/tun.
 
1 members found this post helpful.
Old 11-22-2015, 06:18 PM   #13
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by tux_dude View Post
Openvpn stops immediately if /dev/net/tun is not present. Agreed, it should proceed or even load the module itself.



I haven't been able to find any major diff with the current update that would prevent tun from loading (still digging into it). I thought /lib/udev/rules.d/50-udev-default.rules would have loaded tun when udev started with this line
Code:
KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
Nope, that rule says when device node "tun" appears, give it 0666 permissions and name it "net/tun" - i.e. /dev/net/tun

However, a new eudev package is coming soon to fix that, and perhaps some later enhancements/improvements to the fix, but for now, it will work for you and others running into this.

EDIT: well, I see that Pat beat me

Last edited by rworkman; 11-22-2015 at 06:18 PM. Reason: heh, volkerdi beat me :)
 
Old 11-22-2015, 09:29 PM   #14
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by volkerdi View Post
Fixed. /dev/ppp was the other obvious static node that always existed with udev, but isn't created with eudev until the ppp_generic module is loaded. Maybe it should get the same treatment?

Code:
Sun Nov 22 23:37:53 UTC 2015
a/eudev-3.1.5-x86_64-5.txz:  Rebuilt.
  Add eudev startup message for kmsg.  Thanks to Richard Narron.
  Blacklist some more watchdog modules to work around broken hardware.
  Thanks to Robby Workman.
  Added /dev/net/tun.

Excellent...Thanks Pat
 
Old 11-22-2015, 09:36 PM   #15
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by rworkman View Post
Nope, that rule says when device node "tun" appears, give it 0666 permissions and name it "net/tun" - i.e. /dev/net/tun

However, a new eudev package is coming soon to fix that, and perhaps some later enhancements/improvements to the fix, but for now, it will work for you and others running into this.

EDIT: well, I see that Pat beat me
Robby,
Thanks for working on this. Update eudev and now /dev/net/tun is where it should be.
 
  


Reply

Tags
/dev/net, /dev/net/tun, eudev, openvpn, udev



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Thu Oct 1 21:21:36 UTC 2015 AlleyTrotter Slackware 7 10-03-2015 12:19 PM
Issues in -current as at Fri Aug 21 21:17:48 UTC 2015 allend Slackware 29 08-26-2015 09:49 PM
[SOLVED] Leap Second to be Added 30 June 2015 at 00:00:00 UTC -- NTP Problem? tronayne Slackware 3 07-01-2015 07:19 AM
[SOLVED] RSSOwl and -current update Nov 29 chrisretusn Slackware 0 12-02-2010 07:24 AM
[SOLVED] nov.16 -current update broke cryptsetup danielldaniell Slackware 3 11-17-2010 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration