Tinc1.0pre4 & kernel 2.4.5 & tun/tap - Correction

Igor Belokopytov igor.belokopytov at computalog.com
Fri Jun 29 22:06:35 CEST 2001


 Hello Guus,

I fogot to tell that if I try "ifconfig test4 hw ether fe:fd:00:00:00:00" I get
ping reply with errors, if I don't I get no reply.

--------------------------------------------------------------------------------------------

 I had such file (usr/include/linux/if_tun.h), but it was not symlink to
/usr/src/linux/include/linux/if_tun.h  (file in  directory usr/include/linux was
newer). I made such symlink and recompiled tincd. Now I have  message "/dev/tun is

a new style tun/tap device" in syslog file, I can create <netname> interface and
can create connection with other peer.
But this connection is so bad (ping results in attached file "ping") Other peer
use kernel 2.2.17, tincd 1.0pre4 with ethertap interface (tap0)
Also I got error message from other peer (with kernel 2.2.17 and tap device) I
attached it as file "log"

This is my config files
Host "Test"

/etc/tinc/test4/tinc.conf:
Name = test
PrivateKeyFile = /etc/tinc/test4/rsa_key.priv
TapDevice = /dev/tap0

tinc-up:
#!/bin/sh
insmod ethertap -o "ethertap0" unit=0
ifconfig tap0 hw ether fe:fd:00:00:00:00
ifconfig tap0 10.168.99.221 netmask 255.255.0.0
ifconfig tap0 -arp
/sbin/tincd4 --net=test4 -ddddd

Host "Igor"

/usr/local/etc/tinc/test4/tinc.config:
Name = igor
ConnectTo = test
TapDevice = /dev/tun
PrivateKeyFile = /usr/local/etc/tinc/test4/rsa_key.priv

tinc-up:
#!/bin/sh
tincd -n test4
ifconfig test4 hw ether fe:fd:00:00:00:00   # without this command I get nothing
ifconfig test4 10.168.89.2 netmask 255.255.0.0 -arp

Hosts files are the same for both hosts

/usr/local/etc/tinc/test4/hosts/igor (for host Igor) /etc/tinc/test4/hosts/igor
(for host Test)
Subnet = 10.168.89.0/24
Port = 8195
Address = 10.38.9.2
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAPCbbASyUTBk7Gt4ASmMai/WuW8Ujt+GnM5uM4/6dCLEOF/rsLuSPMUQ
h17li6JtoVueVR4SSbVrwQtMD2XDaDAi+AaIRt/4oGT59tXXpB6UDgm+MoBgBGxQ
epaA60aRxl77j6pNbkjxEECvoqw+cDV0m+a9SlU6p+9/870KFa/bAgMA//8=
-----END RSA PUBLIC KEY-----

/usr/local/etc/tinc/test4/hosts/test (for host Igor) /etc/tinc/test4/hosts/test
(for host Test)
Subnet = 10.168.99.0/24
Port = 8195
Address = 10.38.9.221
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAMRXTyhi3+DpRtLla7InO62fPn7QT6M8OOFho+Th/mtid8cBGLHut6d5
W63i/eX7vKhvNqrRGrhN4Buk4aZqzUaBa9JeNelM8DZcnffAkmQxDK5zNKGrAG3j
sKKw3axrM2kEe/NC2/G3K9qGvBj3NBZm5azZhgnMbZIf1R/woN7DAgMA//8=
-----END RSA PUBLIC KEY-----



 Sincerely,
 Igor Belokopytov





64 bytes from 10.168.99.221: icmp_seq=487 ttl=255 time=6.1 ms
64 bytes from 10.168.99.221: icmp_seq=494 ttl=255 time=6.2 ms
wrong data byte #28 should be 0x1c but was 0x4c
       15 16 17 18 19 1a 1b 4c f 88 27 4b 7e c4 84 24 25 26 27 28 29 2a 2b 2c 2d
2e 2f 30 31 32 33 34 35 36 37 db db db db 8 d9 5 8 ff ff ff ff
64 bytes from 10.168.99.221: icmp_seq=496 ttl=255 time=6.2 ms
64 bytes from 10.168.99.221: icmp_seq=500 ttl=255 time=6.4 ms
wrong data byte #12 should be 0xc but was 0xfd
       14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c
2d 2e 2f 30 31 32 33 34 35 36 37 db db db db 8 d9 5 8 ff ff ff ff



Jun 29 09:43:09 medguard.computalog.com tinc.test4[2893]: Connection from
10.38.9.2 port 33709
Jun 29 09:43:09 medguard.computalog.com tinc.test4[2893]: Connection with igor
(10.38.9.2) activated
Jun 29 09:44:03 medguard.computalog.com tinc.test4[2893]: Sending packet of 98
bytes to igor (10.38.9.2)
Jun 29 09:44:03 medguard.computalog.com tinc.test4[2893]: No valid key known yet
for igor (10.38.9.2), queueing packet
Jun 29 09:44:03 medguard.computalog.com tinc.test4[2893]: Flushing queue for igor
(10.38.9.2)
Jun 29 09:44:05 medguard.computalog.com tinc.test4[2893]: Sending packet of 98
bytes to igor (10.38.9.2)
Jun 29 09:44:07 medguard.computalog.com tinc.test4[2893]: Sending packet of 98
bytes to igor (10.38.9.2)
Jun 29 09:44:09 medguard.computalog.com tinc.test4[2893]: Sending packet of 98
bytes to igor (10.38.9.2)
Jun 29 09:44:11 medguard.computalog.com tinc.test4[2893]: Sending packet of 98
bytes to igor (10.38.9.2)
Jun 29 09:44:13 medguard.computalog.com tinc.test4[2893]: Sending packet of 98
bytes to igor (10.38.9.2)
Jun 29 09:44:15 medguard.computalog.com tinc.test4[2893]: Sending packet of 98
bytes to igor (10.38.9.2)

-
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