Virtual Dedicated Server has not /dev/net - Problem withOpenVPNdev/net/tun

Bryan O'Neal BONeal at cornerstonehome.com
Mon Aug 4 17:44:17 MST 2008


Sorry if I am spamming the list, but I have a deadline with emphasis on
the dead.

Ok, so I tried this 
mkdir -p /dev/net
mknod /dev/net/tun c 10 200

But was now greeted with 
Mon Aug  4 17:38:42 2008 OPTIONS IMPORT: route options modified
Mon Aug  4 17:38:42 2008 Note: Cannot open TUN/TAP dev /dev/net/tun:
Permission denied (errno=13)
Mon Aug  4 17:38:42 2008 Note: Attempting fallback to kernel 2.2 TUN/TAP
interface
Mon Aug  4 17:38:42 2008 Cannot allocate TUN/TAP dev dynamically
Mon Aug  4 17:38:42 2008 Exiting

So I tried (out of desperation) mknod -m 777 /dev/net/tun c 10 200 But
was greeted with the same error


-----Original Message-----
From: plug-discuss-bounces at lists.plug.phoenix.az.us
[mailto:plug-discuss-bounces at lists.plug.phoenix.az.us] On Behalf Of
Bryan O'Neal
Sent: Monday, August 04, 2008 5:28 PM
To: Main PLUG discussion list; Arizona State University Linux Users
Group
Subject: RE: Virtual Dedicated Server has not /dev/net - Problem
withOpenVPNdev/net/tun

For got to mention

[root]# modprobe tun
FATAL: Could not load /lib/modules/2.6.9-023stab044.4-smp/modules.dep:
No such file or directory

-----Original Message-----
From: plug-discuss-bounces at lists.plug.phoenix.az.us
[mailto:plug-discuss-bounces at lists.plug.phoenix.az.us] On Behalf Of
Bryan O'Neal
Sent: Monday, August 04, 2008 5:21 PM
To: Main PLUG discussion list; Arizona State University Linux Users
Group
Subject: Virtual Dedicated Server has not /dev/net - Problem with
OpenVPNdev/net/tun

If some one could please help me set up OpenVPN on a virtual dedicated
server I would be most appreciative.

Set up:
I am trying to set up a vpn using OpenVPN between a couple of virtual
boxes, thus making it really easy for me to set up some "hidden"
services and link all of my systems together in a secure and encrypted
fashion.  I can not really do this using SSH Tunnels as the tunnels
collapse regularly and I would need something that will keep them alive
and reconstruct them on the fly for the applications behind them.  Hence
the VPN.  However when I start OpenVPN with a simple client conf I get
the following
...
Mon Aug  4 17:16:26 2008 PUSH: Received control message:
'PUSH_REPLY,route 10.8.10.1,ping 10,ping-restart 120,ifconfig 10.8.10.10
10.8.10.9'
Mon Aug  4 17:16:26 2008 OPTIONS IMPORT: timers and/or timeouts modified
Mon Aug  4 17:16:26 2008 OPTIONS IMPORT: --ifconfig/up options modified
Mon Aug  4 17:16:26 2008 OPTIONS IMPORT: route options modified
Mon Aug  4 17:16:26 2008 Note: Cannot open TUN/TAP dev /dev/net/tun: No
such file or directory (errno=2)
Mon Aug 4 17:16:26 2008 Note: Attempting fallback to kernel 2.2 TUN/TAP
interface
Mon Aug  4 17:16:26 2008 Cannot allocate TUN/TAP dev dynamically
Mon Aug  4 17:16:26 2008 Exiting

Environment & Problem: 
I am using a mix of GoDaddy dedicated servers and virtual dedicated
servers.  The dedicated ones have no problem, but the virtual dedicated
one toss a Cannot open TUN/TAP dev /dev/net/tun: No such file or
directory (errno=2) error.
Further information.
I have /usr/include/linux/if_tun.h but can not mknod /dev/net/tun c 10
200 because /dev/net does not exist.

Comand output:
[root]# mknod /dev/net/tun c 10 200
mknod: `/dev/net/tun': No such file or directory

[root] # ls -Cl /dev
total 4
crw-rw-rw- 1 root root 5,   1 Apr 13  2006 console
crw------- 1 root root 1,   6 Apr 13  2006 core
lrwxrwxrwx 1 root root     13 Nov 14  2007 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1,   7 Apr 13  2006 full
prw------- 1 root root      0 Nov 14  2007 initctl
crw-r----- 1 root kmem 1,   2 Apr 13  2006 kmem
crw------- 1 root root 1,  11 Apr 13  2006 kmsg
srw-rw-rw- 1 root root      0 Jul 31 14:49 log
drwxr-xr-x 2 root root   4096 Nov 14  2007 mapper
crw-r----- 1 root kmem 1,   1 Apr 13  2006 mem
crw-rw-rw- 1 root root 1,   3 Apr 13  2006 null
crw-r----- 1 root kmem 1,   4 Apr 13  2006 port
crw-rw-rw- 1 root root 5,   2 Apr 13  2006 ptmx
drwxr-xr-x 2 root root      0 Jul 31 14:49 pts
crw-rw-rw- 1 root tty  2, 176 Apr 13  2006 ptya0
crw-rw-rw- 1 root tty  2, 177 Apr 13  2006 ptya1
crw-rw-rw- 1 root tty  2, 178 Apr 13  2006 ptya2
crw-rw-rw- 1 root tty  2, 179 Apr 13  2006 ptya3
crw-rw-rw- 1 root tty  2, 180 Apr 13  2006 ptya4
crw-rw-rw- 1 root tty  2, 181 Apr 13  2006 ptya5
crw-rw-rw- 1 root tty  2, 182 Apr 13  2006 ptya6
crw-rw-rw- 1 root tty  2, 183 Apr 13  2006 ptya7
crw-rw-rw- 1 root tty  2, 184 Apr 13  2006 ptya8
crw-rw-rw- 1 root tty  2, 185 Apr 13  2006 ptya9
crw-rw-rw- 1 root tty  2, 186 Apr 13  2006 ptyaa
crw-rw-rw- 1 root tty  2, 187 Apr 13  2006 ptyab
crw-rw-rw- 1 root tty  2, 188 Apr 13  2006 ptyac
crw-rw-rw- 1 root tty  2, 189 Apr 13  2006 ptyad
crw-rw-rw- 1 root tty  2, 190 Apr 13  2006 ptyae
crw-rw-rw- 1 root tty  2, 191 Apr 13  2006 ptyaf
crw-rw-rw- 1 root tty  2,   0 Apr 13  2006 ptyp0
crw-rw-rw- 1 root tty  2,   1 Apr 13  2006 ptyp1
crw-rw-rw- 1 root tty  2,   2 Apr 13  2006 ptyp2
crw-rw-rw- 1 root tty  2,   3 Apr 13  2006 ptyp3
crw-rw-rw- 1 root tty  2,   4 Apr 13  2006 ptyp4
crw-rw-rw- 1 root tty  2,   5 Apr 13  2006 ptyp5
crw-rw-rw- 1 root tty  2,   6 Apr 13  2006 ptyp6
crw-rw-rw- 1 root tty  2,   7 Apr 13  2006 ptyp7
lrwxrwxrwx 1 root root      4 Nov 14  2007 ram -> ram1
brw-r----- 1 root disk 1,   0 Apr 13  2006 ram0
brw-r----- 1 root disk 1,   1 Apr 13  2006 ram1
lrwxrwxrwx 1 root root      4 Nov 14  2007 ramdisk -> ram0
crw-r--r-- 1 root root 1,   8 Apr 13  2006 random
lrwxrwxrwx 1 root root     15 Nov 14  2007 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root     15 Nov 14  2007 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root     15 Nov 14  2007 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root 5,   0 Apr 13  2006 tty
crw-rw-rw- 1 root tty  3, 176 Apr 13  2006 ttya0
crw-rw-rw- 1 root tty  3, 177 Apr 13  2006 ttya1
crw-rw-rw- 1 root tty  3, 178 Apr 13  2006 ttya2
crw-rw-rw- 1 root tty  3, 179 Apr 13  2006 ttya3
crw-rw-rw- 1 root tty  3, 180 Apr 13  2006 ttya4
crw-rw-rw- 1 root tty  3, 181 Apr 13  2006 ttya5
crw-rw-rw- 1 root tty  3, 182 Apr 13  2006 ttya6
crw-rw-rw- 1 root tty  3, 183 Apr 13  2006 ttya7
crw-rw-rw- 1 root tty  3, 184 Apr 13  2006 ttya8
crw-rw-rw- 1 root tty  3, 185 Apr 13  2006 ttya9
crw-rw-rw- 1 root tty  3, 186 Apr 13  2006 ttyaa
crw-rw-rw- 1 root tty  3, 187 Apr 13  2006 ttyab
crw-rw-rw- 1 root tty  3, 188 Apr 13  2006 ttyac
crw-rw-rw- 1 root tty  3, 189 Apr 13  2006 ttyad
crw-rw-rw- 1 root tty  3, 190 Apr 13  2006 ttyae
crw-rw-rw- 1 root tty  3, 191 Apr 13  2006 ttyaf
crw-rw-rw- 1 root tty  3,   0 Apr 13  2006 ttyp0
crw-rw-rw- 1 root tty  3,   1 Apr 13  2006 ttyp1
crw-rw-rw- 1 root tty  3,   2 Apr 13  2006 ttyp2
crw-rw-rw- 1 root tty  3,   3 Apr 13  2006 ttyp3
crw-rw-rw- 1 root tty  3,   4 Apr 13  2006 ttyp4
crw-rw-rw- 1 root tty  3,   5 Apr 13  2006 ttyp5
crw-rw-rw- 1 root tty  3,   6 Apr 13  2006 ttyp6
crw-rw-rw- 1 root tty  3,   7 Apr 13  2006 ttyp7
crw-r--r-- 1 root root 1,   9 Apr 13  2006 urandom
b-----x--- 1 root root 0,  95 Jul 31 14:49 vzfs
crw-rw-rw- 1 root root 1,   5 Apr 13  2006 zero

[root]# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:14825029307203600730 errors:0 dropped:0 overruns:0
frame:0
          TX packets:4058748698058821372 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:13251200723625487031 (0.2 EiB)  TX
bytes:15768793109323323431 (0.8 EiB)

venet0    Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0
Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:324232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:212072 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:421828895 (402.2 MiB)  TX bytes:20816486 (19.8 MiB)

venet0:0  Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:72.167.31.157  P-t-P:72.167.31.157
Bcast:72.167.31.157  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



More information about the PLUG-discuss mailing list