Also, forgot to mention that the tun stuff
is compiled directly into the kernel:
CONFIG_NET_IPIP=y
or
<*>
IP: tunneling
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 "";