3 tincds, one down, pinging down machine from others loses connection

ebina1 ebina1 at home.com
Tue Feb 5 04:13:12 CET 2002


Guus Sliepen wrote:

>
>Can you tell me which version of tinc and the kernel you are using on
>each machine, and provide me with the full tinc.conf and other config
>files (except for the public/private keys of course).
>
>Also, if this happens, send a USR1 and USR2 signal to the tinc daemon
>that is not responding and cut&paste the resulting messages in the
>syslog.
>
>I'd also like to know if the tinc daemon is using 100% CPU at the time
>it's hanging or not.
>

The version of tinc I am using on all machines is one I checked
out from the CVS tree to fix a previous bug.  Here is the checkout command
I used:

cvs checkout -R CABAL -D "1 Jun 2001 10:03:39 +0200" tinc

Machine C is running Redhat 6.2 kernel 2.2.14-5.0smp and using /dev/tap
Machine A and B are both running Redhat 7.1 kernel 2.4.2-2 and using 
/dev/tun


When machines A and C are up and B is down, A and C connect and
talk fine until a ping of B is done from A.  This hangs the
tincd on A.

The hung tincd is using 99% CPU according to the top command.

Sending USR1 and USR2 to the hung tincd got:

Feb  4 14:19:49 linux tinc.krmvpn[13317]: Connection list:
Feb  4 14:19:49 linux tinc.krmvpn[13317]:  A at MYSELF port 655 options 
0 sockets 6, 5 status 0004
Feb  4 14:19:49 linux tinc.krmvpn[13317]:  C at 65.6.40.158 port 655 
options 0 sockets 0, 7 status 0c8e
Feb  4 14:19:49 linux tinc.krmvpn[13317]: End of connection list.


Feb  4 14:20:18 linux tinc.krmvpn[13317]: Subnet list:
Feb  4 14:20:18 linux tinc.krmvpn[13317]:  1,c0a80000/ffffff00 owner C
Feb  4 14:20:18 linux tinc.krmvpn[13317]:  1,c0a80100/ffffff00 owner A
Feb  4 14:20:18 linux tinc.krmvpn[13317]: End of subnet list.


Config files:

On machine A
------------
tinc.conf:

Name = A
PrivateKeyFile = /usr/local/etc/tinc/krmvpn/rsa_key.priv
TapDevice = /dev/tun
KeyExpire = 30000000
ConnectTo = C
ConnectTo = B

tinc-up:

#!/bin/sh
ifconfig krmvpn hw ether fe:fd:00:00:00:00
ifconfig krmvpn 192.168.1.253 netmask 255.255.0.0
ifconfig krmvpn -arp mtu 1400

hosts/A:

Address = 24.181.129.103
Subnet = 192.168.1.0/24


On machine B
------------
tinc.conf:

Name = B
PrivateKeyFile = /usr/local/etc/tinc/krmvpn/rsa_key.priv
TapDevice = /dev/tun
KeyExpire = 30000000
ConnectTo = C

tinc-up:

#!/bin/sh
ifconfig krmvpn hw ether fe:fd:00:00:00:00
ifconfig krmvpn 192.168.2.99 netmask 255.255.0.0
ifconfig krmvpn -arp mtu 1400

hosts/B:

Address = 24.181.128.179
Subnet = 192.168.2.0/24


On machine C
------------
tinc.conf:

Name = C
PrivateKeyFile = /usr/local/etc/tinc/krmvpn/rsa_key.priv
TapDevice = /dev/tap0
KeyExpire = 30000000

tinc-up:

#!/bin/sh
ifconfig tap0 hw ether fe:fd:00:00:00:00
ifconfig tap0 192.168.0.3 netmask 255.255.0.0
ifconfig tap0 -arp

hosts/C:

Address = 65.6.40.158
Subnet = 192.168.0.0/24



Tinc:         Discussion list about the tinc VPN daemon
Archive:      http://mail.nl.linux.org/lists/
Tinc site:    http://tinc.nl.linux.org/




More information about the Tinc mailing list