Setup problems, /dev/net/tun FD in bad state

Yang cuztzan02 at sneakemail.com
Sun Jun 10 05:15:38 CEST 2007


Hi all, I'm following the manual but I get the below error, and I
believe tinc is clobbering my conf file.

I've never set up VPN before, I'm just trying to connect to my work
network from home. All the following is on my work computer. Thanks in
advance for any help.

$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:1A:A0:17:3A:50
          inet addr:172.24.104.145  Bcast:172.24.111.255  Mask:255.255.240.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2897682 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4548944 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:746454774 (711.8 MiB)  TX bytes:5477269317 (5.1 GiB)
          Interrupt:177

$ tincd --version
tinc version 1.0.4 (built Oct 25 2005 12:55:09, protocol 17)
Copyright (C) 1998-2005 Ivo Timmermans, Guus Sliepen and others.
See the AUTHORS file for a complete list.

tinc comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions;
see the file COPYING for details.

$ ls -R /etc/tinc/yang/
/etc/tinc/yang/:
hosts  tinc.conf

/etc/tinc/yang/hosts:
zee

$ cat /etc/tinc/yang/tinc.conf
Name = zee
Interface = /dev/net/tun

[also tried setting /dev/tap0, but got exact same errors]

$ cat /etc/tinc/yang/hosts/zee
Address = yangzhang.corp.google.com
Subnet = 172.24.0.0/16

$ sudo tincd -d9 -K -n yang
Generating 1024 bits keys:
.......++++++ p
.......................................................................++++++ q
Done.
Please enter a file to save private RSA key to [/etc/tinc/yang/rsa_key.priv]:
Please enter a file to save public RSA key to [/etc/tinc/yang/hosts/zee]:
Appending key to existing contents.
Make sure only one key is stored in the file.

$ sudo tincd -d9 -D -n yang 2>&1 | head
tincd 1.0.4 (Oct 25 2005 12:55:06) starting, debug level 9
/dev/net/tun is a Linux ethertap device
Listening on 0.0.0.0 port 655
Creating metasocket failed: Address family not supported by protocol
Ready
Error while reading from Linux ethertap device /dev/net/tun: File
descriptor in bad state
Error while reading from Linux ethertap device /dev/net/tun: File
descriptor in bad state
Error while reading from Linux ethertap device /dev/net/tun: File
descriptor in bad state
Error while reading from Linux ethertap device /dev/net/tun: File
descriptor in bad state
Error while reading from Linux ethertap device /dev/net/tun: File
descriptor in bad state
...


More information about the tinc mailing list