|
From: Mike D. <mdi...@en...> - 2004-04-15 17:45:24
|
Also, forgot to mention that the tun stuff is compiled directly into the
kernel:
CONFIG_NET_IPIP=3Dy
or=20
<*> IP: tunneling=20
in menuconfig
=20
AdvThanksance! ;)
=20
...Mike
=20
=20
-----Original Message-----
From: ope...@li...
[mailto:ope...@li...] On Behalf Of Mike
Dickson
Sent: April 15, 2004 1:36 PM
To: ope...@li...
Subject: [Openvpn-users] openVPN can't find /dev/net/tun
=20
Hi all
=20
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
=20
openvpn --mktun --dev tap0
=20
I get
Thu Apr 15 13:32:18 2004 0[0]: Note: Cannot open TUN/TAP dev
/dev/net/tun: No such device (errno=3D19)
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=3D2)
Thu Apr 15 13:32:18 2004 3[0]: Exiting
=20
Even though it clearly does exist:
=20
crw-r--r-- 1 root root 10, 200 Apr 13 13:59 tun
=20
Has anyone seen this before? Here is some info on the system and config
files I've modified so far.
=20
Debian "testing" acting as gateway. Eth0 is internal, eth1 is external.
Here is /etc/network/interfaces for br0:
=20
# 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
=20
/usr/local/sbin/bridge-preup:
maxtap=3D5;
=20
# 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 "";
=20
# 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 "";
=20
/usr/local/sbin/bridge-postdown
maxtap=3D5;
=20
# 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 "";
|