[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] openVPN can't find /dev/net/tun


  • Subject: Re: [Openvpn-users] openVPN can't find /dev/net/tun
  • From: Christoph <princess@xxxxxxx>
  • Date: Sat, 17 Apr 2004 09:52:57 +0200

Even if you enabled the TUN/TAP module in the kernel you have to:

- mkdir /dev/net
- mknod /dev/net/tun c 10 200  (Linux kernel 2.4.x)

This is documented in install.html at the homepage.

greetings

christoph

Kai Dittmann schrieb:

Am Do, den 15.04.2004 schrieb Mike Dickson um 19:45:

Also, forgot to mention that the tun stuff is compiled directly into
the kernel:

CONFIG_NET_IPIP=y

or

<*> IP: tunneling



Hello Mike,

	you have to activate:
	"<*> Universal TUN/TAP device driver" support
	found under "[*] Network device support"
	IP/IP Tunneling is wrong.



cheers,
--- KD



in menuconfig



AdvThanksance! ;)



…Mike





-----Original Message-----
From: openvpn-users-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:openvpn-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike
Dickson
Sent: April 15, 2004 1:36 PM
To: openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Subject: [Openvpn-users] openVPN can't find /dev/net/tun



Hi all



Here’s one I can’t figure out.  I’m new to OpenVPN so please bear with
me…I’m really hoping this is easy and obvious.  When I run



           openvpn --mktun --dev tap0



I get

           Thu Apr 15 13:32:18 2004 0[0]: Note: Cannot open TUN/TAP
dev /dev/net/tun: No such device (errno=19)

Thu Apr 15 13:32:18 2004 1[0]: Note: Attempting fallback to kernel 2.2
TUN/TAP interface

Thu Apr 15 13:32:18 2004 2[0]: Cannot open TUN/TAP dev /dev/tap0: No
such file or directory (errno=2)

Thu Apr 15 13:32:18 2004 3[0]: Exiting



Even though it clearly does exist:



crw-r--r--    1 root     root      10, 200 Apr 13 13:59 tun



Has anyone seen this before?  Here is some info on the system and
config files I’ve modified so far.



Debian “testing” acting as gateway. Eth0 is internal, eth1 is
external.


Here is /etc/network/interfaces for br0:



# New Style: bridged for VPN on br0

auto br0

iface br0 inet static

       address 192.168.1.3

       netmask 255.255.255.0

       network 192.168.1.0

       broadcast 192.168.1.255

#       gateway 192.168.1.3

#        bridge_ports eth1 tap1 tap2 tap3 tap4 tap5

       pre-up    /usr/local/sbin/bridge-preup

       post-down /usr/local/sbin/bridge-postdown



/usr/local/sbin/bridge-preup:

maxtap=5;



# Creat the tunnel interfaces

echo -n "OpenVPN: Creating bridge interfaces:";

for i in `seq 1 ${maxtap}`; do

   openvpn --mktun --dev tap${i};

   echo -n ".";

done

echo "";



# Create the bridges for each tap

echo -n "OpenVPN: Creating TAP interfaces:";

for i in `seq 0 ${maxtap}`; do

   brctl addif br0 tap${i};

   echo -n ".";

done

echo "";



/usr/local/sbin/bridge-postdown

maxtap=5;



# Create the bridges for each tap

echo -n "OpenVPN: Removing bridge interfaces:";

for i in `seq 0 ${maxtap}`; do

   brctl delif br0 tap${i};

   echo -n ".";

done

echo "";

echo -n "OpenVPN: Removing tap interfaces:";

for i in `seq 1 ${maxtap}`; do

   openvpn --rmtun --dev tap${i};

   echo -n ".";

done

echo "";




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users


____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2004-04/msg00136.html on line 298

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2004-04/msg00136.html on line 298