Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#4322 - 'modprobe tun' doesn't create tun device

Attached to Project: Arch Linux
Opened by Pieter de Bie (frim) - Thursday, 30 March 2006, 16:35 GMT
Last edited by arjan timmerman (blaasvis) - Thursday, 30 March 2006, 17:40 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

modprobing tun doesn't create tun(0) device in ifconfig:

[frim@Madrid ipv6]$ sudo rmmod tun
[frim@Madrid ipv6]$ sudo modprobe tun
[frim@Madrid ipv6]$ ls /dev/net/
tun
[frim@Madrid ipv6]$ dmesg | tail
....
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[frim@Madrid ipv6]$ ifconfig -a | grep encap
eth0 Link encap:Ethernet HWaddr 00:0A:E6:BF:FA:37
eth1 Link encap:Ethernet HWaddr 00:E0:18:CE:83:B2
lo Link encap:Local Loopback
sit0 Link encap:UNSPEC HWaddr 00-00-00-00-31-00-00-00-00-00-00-00-00-00-00-00
This task depends upon

Closed by  Judd Vinet (judd)
Thursday, 30 March 2006, 18:09 GMT
Reason for closing:  Not a bug
Comment by arjan timmerman (blaasvis) - Thursday, 30 March 2006, 17:40 GMT
seems like an udev trouble...
Comment by Tobias Powalowski (tpowa) - Thursday, 30 March 2006, 18:00 GMT
i don'T think udev ever created tun[0-x] devices, because it's not needed.
i'm not a tunnel expert but i think you need something like openvpn to create such a device.
Comment by Jason Chu (jason) - Thursday, 30 March 2006, 18:07 GMT
I was under the impression that tunctl created tap net devices.

If you add a tunctl -u <your user> between dmesg and ifconfig, you'll see a tap0 show up.
Comment by Judd Vinet (judd) - Thursday, 30 March 2006, 18:09 GMT
Yes, no tun[0-9] interfaces are created until you issue an ioctl on /dev/net/tun. This is usually done by tun-using programs such as openvpn.

Loading...