Hi! When I try to use tinc I get this message 'Cannot route packet: unknown type 0' when I try to ping or ssh to the box I'm connected to. Below is my setup: ifconfig tun device: -------------------- midkemia Link encap:Ethernet HWaddr FE:FD:00:00:00:00 inet addr:192.168.6.1 Bcast:192.168.6.255 Mask:255.255.0.0 UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:96 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:8982 (8.7 Kb) tinc.conf: -------------------- # file: /etc/tinc/midkemia/tinc.conf # # The name of this tinc host. Name = Darkness # The internet host(s) to connect with. # Comment these out to make yourself a listen-only connection. ConnectTo = Disorder # The tap device tinc will use. # Default is /dev/tap0 TapDevice = /dev/net/tun # Bind tinc to a single interface. By default tinc will # listen to all interfaces for incomming connections. # Interface = ppp0 # Number of seconds before encryption will have expired. # 60s x 60m x 24h x 365 = 1 year (because of bug!!) KeyExpire = 31536000 # The file in which the private key for this host is stored. PrivateKeyFile = /etc/tinc/midkemia/rsa_key.priv output of route: ---------------------- Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.7.1 * 255.255.255.255 UH 0 0 0 midkemia 255.255.255.255 * 255.255.255.255 UH 0 0 0 eth0 xxx.xxx.xxx.xxx * 255.255.255.255 UH 0 0 0 ppp0 192.168.2.0 * 255.255.255.0 U 0 0 0 eth1 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 192.168.0.0 * 255.255.0.0 U 0 0 0 midkemia 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default * 0.0.0.0 U 0 0 0 ppp0 When I do a tcpdump I only see the ping requests on device midkemia, though nothing on ppp0. Thanks in advance, Peter. *** Disclaimer *********************************** This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://tinc.nl.linux.org/
On Thu, Dec 13, 2001 at 11:49:08AM +0100, Peter Berends wrote:> When I try to use tinc I get this message 'Cannot route packet: unknown type > 0' when I try to ping or ssh to the box I'm connected to.That's really odd. Can you tell me exactly which version of tinc you are using, which version of the Linux kernel and the commands you used to configure device midkemia? -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus@sliepen.warande.net> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20011213/ba83dfe7/attachment.pgp
Sure, (b.t.w. extremely quick answer ;), I use linux Mandrake 8.0 with a custom 2.4.3 kernel (with tun/tap enabled in the kernel, not as a module). To create the device I used a tinc-up script which has the following contents: #!/bin/sh # This file sets up the tap device. # It gives you the freedom to do anything you want with it. # Use the correct name for the tap device: # For ethertap this is tap0, tap1, tap2 etcetera, # but for the universal tun/tap device use $NETNAME. # Set hardware ethernet address (required!) ifconfig $NETNAME hw ether fe:fd:0:0:0:0 # Give it the right ip and netmask. Remember, the subnet of the # tap device must be larger than that of the individual Subnets # as defined in the host configuration file! ifconfig $NETNAME 192.168.6.1 netmask 255.255.0.0 -arp Then I fire up 'tincd -n midkemia' and the device is created. I used tinc version 1.0pre4 using these command-line options for configure: --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/s hare/man --infodir=/usr/share/info I tried to compile the CVS version but that didn't work (a lot of errors about undeclared variables and stuff). Thanks again (also for the fastest reply I have ever had)! Peter.> -----Original Message----- > From: Guus Sliepen [SMTP:guus@sliepen.warande.net] > Sent: Thursday, December 13, 2001 11:57 AM > To: Peter Berends > Cc: tinc@nl.linux.org > Subject: Re: cannot route packet: unknown type 0 > > On Thu, Dec 13, 2001 at 11:49:08AM +0100, Peter Berends wrote: > > > When I try to use tinc I get this message 'Cannot route packet: unknown > type > > 0' when I try to ping or ssh to the box I'm connected to. > > That's really odd. Can you tell me exactly which version of tinc you are > using, which version of the Linux kernel and the commands you used to > configure device midkemia? > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus@sliepen.warande.net>*** Disclaimer *********************************** This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://tinc.nl.linux.org/
I compiled the latest CVS-version, but unfortunatelly the same error :( Tia, Peter.> -----Original Message----- > From: Guus Sliepen [SMTP:guus@sliepen.warande.net] > Sent: Thursday, December 13, 2001 12:21 PM > To: Peter Berends > Cc: tinc@nl.linux.org > Subject: Re: cannot route packet: unknown type 0 > > On Thu, Dec 13, 2001 at 12:06:56PM +0100, Peter Berends wrote: > > > I use linux Mandrake 8.0 with a custom 2.4.3 kernel (with tun/tap > > enabled in the kernel, not as a module). > > Could you copy&paste the messages that appear in your syslog right after > tinc starts? > > > I tried to compile the CVS version but that didn't work (a lot of > > errors about undeclared variables and stuff). > > Try: > > cvs co -r CABAL -D "2001-06-21 12:00" tinc > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus@sliepen.warande.net>*** Disclaimer *********************************** This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://tinc.nl.linux.org/