crashing on receiving connection

Eduard Bloch edi at gmx.de
Thu Mar 8 22:00:01 CET 2001


#include <hallo.h>
Guus Sliepen wrote on Thu Mar 08, 2001 um 08:40:06PM:

> > Subnet = 192.168.1.0/24

> > Subnet = 192.168.0.0/16
> 
> > Now, zomb has a vpn device with ip: 192.168.1.1 and netmask:
> > 255.255.255.0. home has ip 192.168.1.2, same netmask. Now, I want to
> 
> Ehm, what you say is not what I see above (one /24 and one /16 netmask).

Errr, I was editing the files while typing the mail and pasted a wrong
version. I use ...1.0/24 of course.

> Furthermore, 192.168.1.1/255.255.255.0 and 192.168.1.2/255.255.255.0 overlap!

And why? IIRC tap0 is an emulated Ethernet divice, so I choosed IPs and
netmasks which I would take for an ethernet network with 2 or more
network cards (or even emulated ones). IMHO, network 192.168.1.0 with
netmask: 255.255.255.0 and broadcast: 192.168.1.255, so we have an IP
range from 192.168.1.1 to 192.168.1.254. I just want to have to
(virtuall) network cards (tap devices) which are really connected trough
the SSL tunnel in userspace instead of cable. This is my point of view.

> Ok, this is an error message which should actually say something else, but you
> are using ARP on the tap device. You should turn that off (ifconfig tap0 -arp
> or ifconfig $NETNAME -arp if you use devfs). It's not explained in the docs because
> before 2.4 kernels the tap device had ARP disabled by default.

I tried it with and without arp, with /16 and /24 netmask, nothing
helps. So the config again, both systems has identical hosts files:

hosts/zomb:

Subnet = 192.168.1.0/24
Address = 192.168.0.2
PublicKey = D69EB1EC4406D5D375FDA574EFDB10BFB090D195986785F37F62CB0E951BE8ABDA448ACF24DB26206F7E5209FD629C16CF2AE1796AD28D25D324DE6D5A801D602C00B2B168ECEA8AD10D1E33F758D4BF75D02C646DD9612FC81B8359DD1F8ED3ADDE44B1CD1F5888CCC9057FA18A03786A36D79A484B1DBAA93A29555AE6B66B

hosts/home:

Subnet = 192.168.1.0/24
Address = 192.168.0.4
PublicKey = C419B5ADA10482686C67679A9AB0EB2387E75284A0F45006583EE7EDD474FEEDA4FCC93835E68873C92B811DBC87FEF4117E17DBB1C644BA9BE20BBB279D44989FA85D086FE1079BE02852657253002060646397439D0DC3A906A203B8FD40E648A310E00383E5658AFD67FFAF76FC96C309619DB32E0B31AF61B1B5369937AF

from daemon.log of home while pinging others:

Mar  8 21:54:39 isdn tinc.vpn[1030]: Read packet of length 40 from tap device
Mar  8 21:54:39 isdn tinc.vpn[1030]: Trying to look up 0.0.0.0 in connection list failed!
Mar  8 21:54:40 isdn tinc.vpn[1030]: Read packet of length 40 from tap device
Mar  8 21:54:40 isdn tinc.vpn[1030]: Trying to look up 0.0.0.0 in connection list failed!

... using -USR1 and -USR2 kill signals:

Mar  8 21:55:42 isdn tinc.vpn[1030]: Connection list:
Mar  8 21:55:42 isdn tinc.vpn[1030]:  home at MYSELF port 655 flags 0 sockets 0, 5 status 0004
Mar  8 21:55:42 isdn tinc.vpn[1030]:  zomb at 192.168.0.2 port 655 flags 0 sockets 7, 6 status 0e06
Mar  8 21:55:42 isdn tinc.vpn[1030]: End of connection list.
Mar  8 21:56:00 isdn tinc.vpn[1030]: Subnet list:
Mar  8 21:56:00 isdn tinc.vpn[1030]:  1,c0a80100/ffffff00 owner zomb
Mar  8 21:56:00 isdn tinc.vpn[1030]:  1,c0a80100/ffffff00 owner home
Mar  8 21:56:00 isdn tinc.vpn[1030]: End of subnet list.

same from zomb:

Mar  8 21:56:19 localhost tinc.vpn[3738]: Read packet of length 46 from tap device
Mar  8 21:56:19 localhost tinc.vpn[3738]: Trying to look up 176.153.192.168 in connection list failed!
Mar  8 21:56:20 localhost tinc.vpn[3738]: Read packet of length 46 from tap device
Mar  8 21:56:20 localhost tinc.vpn[3738]: Trying to look up 176.153.192.168 in connection list failed!
Mar  8 21:56:44 localhost tinc.vpn[3738]: Connection list:
Mar  8 21:56:44 localhost tinc.vpn[3738]:  zomb at MYSELF port 655 flags 0 sockets 0, 5 status 0004
Mar  8 21:56:44 localhost tinc.vpn[3738]:  home at 192.168.0.4 port 655 flags 0 sockets 7, 6 status 0e0e
Mar  8 21:56:44 localhost tinc.vpn[3738]: End of connection list.
Mar  8 21:56:46 localhost tinc.vpn[3738]: Subnet list:
Mar  8 21:56:46 localhost tinc.vpn[3738]:  1,c0a80100/ffffff00 owner home
Mar  8 21:56:46 localhost tinc.vpn[3738]:  1,c0a80100/ffffff00 owner zomb
Mar  8 21:56:46 localhost tinc.vpn[3738]: End of subnet list.


> Add that extra ifconfig line to the tinc-up script.

Simple:

"ifconfig tap0 192.168.1.1 up" on home
"ifconfig vpn 192.168.1.2 up" on zomb
netmask and bcast are set automaticaly to the values mentioned above.
zomb uses kernel 2.4.2-ac3 and tun/tap device, but it should not be the
problem, I got same errors using ethertap driver.

MfG,
Eduard.
-- 
====================================================================
Eduard Bloch <blade at debian.org>; HP: http://eduard.bloch.com/edecosi
0xEDF008C5(GnuPG): E6EB 98E2 B885 8FF0 6C04 5C1D E106 481E EDF0 08C5
**
Wenn man möchte, daß etwas richtig gemacht wird, dann endet
es im allgemeinen damit, daß man es selber machen muß.

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



More information about the Tinc mailing list