Routing in tinc pre5

Igor Belokopytov igor.belokopytov at computalog.com
Tue Feb 26 18:11:03 CET 2002


   Hello,

 I have HostA, HostB, HostC.
 HostB "ConnetTo=HostA" and HostC "ConnectTo=HostA"

[HostA]#cat tinc.conf
     Name = HostA
     Device = /dev/tap0
     PrivateKeyFile = /usr/local/etc/tinc/test4/rsa_key.priv

[HostB]#cat tinc.conf
     Name = HostB
     ConnectTo = HostA
     Device = /dev/misc/net/tun
     PrivateKeyFile = /usr/local/etc/tinc/test4/rsa_key.priv

[HostC]#cat tinc.conf
     Name = HostC
     ConnectTo = HostA
     Device = /dev/tap0
     PrivateKeyFile = /usr/local/etc/tinc/test4/rsa_key.priv

 hosts/HostA:
    Subnet = 192.168.2.0/24
    Port = 8195
    Address = 10.38.9.223
 hosts/HostB:
     Subnet = 192.168.1.0/24
     Port = 8195
     Address = 10.38.9.2
  hosts/HostC:
     Subnet = 192.168.3.0/24
     Port = 8195
     Address = 10.38.9.221

  [HostA]#cat tinc-up
     insmod ethertap -o "ethertap0" unit="0"
     ifconfig tap0 hw ether fe:fd:00:00:00:00
     ifconfig tap0 192.168.2.223 netmask 255.255.0.0 broadcast
192.168.255.255
     ifconfig tap0 -arp
     tincd -n test4 -d5

  [HostB]#cat tinc-up
    tincd -n test4 -d5
    ifconfig test4 hw ether fe:fd:00:00:00:00
    ifconfig test4 192.168.1.2 netmask 255.255.0.0 broadcast
192.168.255.255
    ifconfig test4 -arp

  [HostC]#cat tinc-up
     insmod ethertap -o "ethertap0" unit="0"
     ifconfig tap0 hw ether fe:fd:00:00:00:00
     ifconfig tap0 192.168.3.221 netmask 255.255.0.0 broadcast
192.168.255.255
     ifconfig tap0 -arp
     tincd -n test4 -d5

 pinging HostA <->HostB and  HostA <-> HostC are Ok.
 But if I try to ping HostC -> HostB I get:

    HostC tinc[11309]: Sending packet of 98 bytes to igor (10.38.9.2)
    HostC tinc[11309]: No valid key known yet for igor (10.38.9.2),
queueing packet
    HostA tinc.test4[12354]: Got SEGV signal
    HostA tinc.test4[12354]: Trying to re-execute in 5 seconds...
    HostA tinc.test4[12354]: Closing connection with HostB (10.38.9.2)
    HostA tinc.test4[12354]: Closing connection with HostC (10.38.9.221)

    HostC tinc[11309]: Connection closed by  HostA (10.38.9.223)
    HostC tinc[11309]: Closing connection with HostA (10.38.9.223)
    HostC tinc[11309]: Trying to re-establish outgoing connection in 5
seconds
    HostA tinc.test4[12354]: Closing connection with HostA (MYSELF)
    HostA tinc.test4[12354]: Executing script tinc-down
    HostC tinc[11309]: Cannot route packet: unknown destination address
192.168.1.2
    HostC tinc[11309]: Cannot route packet: unknown destination address
192.168.1.2


 Regards,
 Igor Belokopytov

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