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

[Openvpn-users] Re: Cannot ioctl TUNSETIFF tap0: Invalid argument - problem


  • Subject: [Openvpn-users] Re: Cannot ioctl TUNSETIFF tap0: Invalid argument - problem
  • From: "SoCo" <soco@xxxxxxxxxxxxxxx>
  • Date: Sat, 2 Oct 2004 16:18:17 +0200

Hi,

[debian:~#] openvpn --mktun --dev tap0
Sat Oct  2 16:12:15 2004 0: Note: Cannot ioctl TUNSETIFF tap0: Invalid
argument (errno=22)
Sat Oct  2 16:12:15 2004 1: Note: Attempting fallback to kernel 2.2 TUN/TAP
interface
Sat Oct  2 16:12:15 2004 2: Cannot open TUN/TAP dev /dev/tap0: No such file
or directory (errno=2)
Sat Oct  2 16:12:15 2004 3: Exiting

openvpn is trying to do that on startup... here is my config file:
[debian:~#] cat /etc/openvpn/server.conf
remote 1.2.3.4
rport 5001
proto udp
dev tap0
ifconfig 10.3.0.6 255.255.255.252
route 10.3.0.0 255.255.255.0 10.3.0.5
ping 10
verb 4
mute 10
persist-tun
persist-key
persist-local-ip
tun-mtu 1500
fragment 1300
mssfix
user nobody
group nogroup
comp-lzo
secret key.key

Regards
SoCo


"Jean-Pierre Schwickerath" <lists@xxxxxxxxxxxx> wrote in message
news:20041001172937.52c775a5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> Hi
>
> Do you run it with
> dev tap0
> in you config file?
> If yes, you need to create the tunnel before you can launch OpenVPN on
> it:
> openvpn --mktun --dev tap0
>
>
> Jean-Pierre
>
> -- 
> Powered by Linux From Scratch - http://schwicky.net/
> PGP Key ID: 0xEE6F49B4 - AIM/Jabber: Schwicky - ICQ: 4690141
>
> Nothing is impossible... Everything is relative!




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