subnet-up invocations

Nikolaus Rath Nikolaus at rath.org
Tue Jul 17 15:29:11 CEST 2012


Hello,

I'm confused by the subnet-up calls made by tinc. I was assuming that
I'd be called once when it connects to another node. However, subnet-up
appears to be called much more often than that.

For example, I have the following configuration:

,----
| $ cat tinc.conf 
| ConnectTo = spitzer
| Name = chronos
| Mode = switch
| 
| $ cat hbt/hosts/spitzer 
| address = spitzer.ap.columbia.edu
| Compression = 11
| Cipher = AES128
| Subnet = 192.168.1.2/32
| Subnet = 192.168.1.0/24#15
| 
| -----BEGIN RSA PUBLIC KEY-----
[...]
| -----END RSA PUBLIC KEY-----
`----

If I insert a

| echo "$NODE,$NAME,$REMOTEADDRESS,$SUBNET"

into subnet-up, I get the following output:

Jul 16 12:39:09 chronos tinc/subnet-up: chronos,,,192.168.1.19/32
Jul 16 12:39:09 chronos tinc/subnet-up: chronos,,,12:18:ad:69:15:1d
Jul 16 12:39:31 chronos tinc/subnet-up: athena,,128.59.46.252,5a:f2:eb:1e:bb:1a
Jul 16 12:39:31 chronos tinc/subnet-up: athena,,128.59.46.252,192.168.1.20/32
Jul 16 12:39:31 chronos tinc/subnet-up: ingpu,,128.59.146.167,6a:ad:ba:78:23:cf
Jul 16 12:39:31 chronos tinc/subnet-up: ingpu,,128.59.146.167,192.168.1.5/32
Jul 16 12:39:31 chronos tinc/subnet-up: inspiron,,128.59.145.39,32:aa:bd:af:d9:7a
Jul 16 12:39:31 chronos tinc/subnet-up: inspiron,,128.59.145.39,192.168.1.7/32
Jul 16 12:39:31 chronos tinc/subnet-up: oberon,,128.59.151.213,8a:62:50:af:2e:3d
Jul 16 12:39:31 chronos tinc/subnet-up: oberon,,128.59.151.213,192.168.1.21/32
Jul 16 12:39:31 chronos tinc/subnet-up: spitzer,,128.59.144.255,0:26:b9:62:d9:58
Jul 16 12:39:31 chronos tinc/subnet-up: spitzer,,128.59.144.255,192.168.1.2/32
Jul 16 12:39:31 chronos tinc/subnet-up: spitzer,,128.59.144.255,192.168.1.0/24

(athena, ingpu, oberon and inspiron are other tinc nodes that also
connected to spitzer).

I can still sort of understand that subnet-up is being called twice with 
subnet 192.168.1.2/32 and 192.168.1.0/24 (even though the later implies
the former), because I also specified two subnets in the spitzer host
configuration.

But why am I seeing subnet-up calls with subnets that look like mac
addresses? And why am I getting subnet calls for nodes that this
computer does not actually connect to?


Thanks,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


More information about the tinc mailing list