Configuration Help. Ping says Destination unreachable.

Shashank Khanvilkar shashank at mia.ece.uic.edu
Sat Jun 7 19:58:43 CEST 2003


Hi, 
I have tinc up and runing (thanks to Guus). 
However i have some configuration problem now. Here is the backgroud:

SERVER (zidler): (tincd started as "tincd -n zidler -d 5")
---------------------------------------------------------
shashank at zidler:/usr/local/etc/tinc/zidler# cat tinc.conf
Name = zidler
Device = /dev/net/tun
PrivateKeyFile = /etc/tinc/zidler/rsa_key.priv
---------------------------------------------------------
shashank at zidler:/usr/local/etc/tinc/zidler# cat tinc-up
#!/bin/sh
ifconfig $INTERFACE hw ether fe:fe:0:0:0:0
ifconfig $INTERFACE 192.168.254.201 netmask 255.255.255.0
ifconfig $INTERFACE -arp
---------------------------------------------------------
shashank at zidler:/usr/local/etc/tinc/zidler# cat tinc-down 
#!/bin/sh
ifconfig $INTERFACE down
---------------------------------------------------------
shashank at zidler:/usr/local/etc/tinc/zidler# ifconfig
--SNIP=--
zidler    Link encap:Ethernet  HWaddr FE:FE:00:00:00:00  
          inet addr:192.168.254.201  Bcast:192.168.254.255  
Mask:255.255.255.0
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
---------------------------------------------------------
shashank at zidler:~# cat /var/log/messages
Jun  7 13:04:07 zidler tinc.zidler[14791]: tincd 1.0pre8 (Jun  2 2003 
15:07:47) starting, debug level 5
Jun  7 13:04:07 zidler tinc.zidler[14791]: /dev/net/tun is a Linux tun/tap 
device
Jun  7 13:04:07 zidler tinc.zidler[14791]: Executing script tinc-up
Jun  7 13:04:08 zidler tinc.zidler[14791]: Listening on 0.0.0.0 port 655
Jun  7 13:04:08 zidler tinc.zidler[14791]: Ready
Jun  7 13:04:08 zidler /etc/hotplug/net.agent: invoke ifup zidler
Jun  7 13:04:40 zidler tinc.zidler[14791]: Connection from 131.193.50.165 
port 51371
Jun  7 13:04:40 zidler tinc.zidler[14791]: Connection with mia 
(131.193.50.165 port 51371) activated
--------------------------------------------------------------------






CLIENT MIA: (tincd started as "tincd -n mia -d 5")
---------------------------------------------------------
shashank at mia mia]# cat tunc.conf
cat: tunc.conf: No such file or directory
[shashank at mia mia]# cat tinc.conf
Name = mia
ConnectTo = zidler
Device = /dev/net/tun
PrivateKeyFile = /etc/tinc/mia/rsa_key.priv
----------------------------------------------------------
[shashank at mia mia]# cat tinc-up
#!/bin/sh
ifconfig $INTERFACE hw ether fe:fd:0:0:0:0
ifconfig $INTERFACE 192.168.254.200 netmask 255.255.255.0
ifconfig $INTERFACE -arp
-----------------------------------------------------------
[shashank at mia mia]# cat tinc-down
#!/bin/sh
ifconfig $INTERFACE down
----------------------------------------------------------
[shashank at mia mia]# cat hosts/zidler 
Address = 131.193.50.184
#cipher = blowfish
#Compression = 9
#Digest = sha1
#IndirectData = no
Subnet = 192.168.2.0/24
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAMIJu3jEzpzBwRSkcDTTKPvsYv1BfpSzEX7jy5eRB50riRO7cOeDG2BU
zh0y8l5tSJ6IEgg7SAQdl3FeIUOUQQGP4evaIMcMsoYkoqO4Sw2vMFWizoNb0dCQ
nDiOh7cW2Xw8cBwbo/cdn1jGROK10UsWHkRyAGqEo8ReMqWw9mTDAgMA//8=
-----END RSA PUBLIC KEY-----
-----------------------------------------------------------
[shashank at mia mia]# ifconfig
--SNIP--
mia       Link encap:Ethernet  HWaddr FE:FD:00:00:00:00  
          inet addr:192.168.254.200  Bcast:192.168.254.255  
Mask:255.255.255.0
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:2588 (2.5 Kb)  TX bytes:2174 (2.1 Kb)

-----------------------------------------------------------
[shashank at mia mia]# ping 192.168.254.201
PING 192.168.254.201 (192.168.254.201) 56(84) bytes of data.
>From 192.168.254.201 icmp_seq=2 Dest Unreachable, Bad Code: 6

-------------------------------------------------------------------
[shashank at mia mia]# cat /var/log/messages
Jun  7 12:55:19 mia tinc.mia[748]: tincd 1.0-cvs (Jun  7 2003 11:57:09) 
starting, debug level 5[shashank at mia mia]# cat /var/log/messages
Jun  7 12:55:19 mia /etc/hotplug/net.agent: invoke ifup mia
Jun  7 12:55:19 mia tinc.mia[748]: /dev/net/tun is a Linux tun/tap device
Jun  7 12:55:19 mia tinc.mia[748]: Listening on 0.0.0.0 port 655
Jun  7 12:55:19 mia tinc.mia[748]: Ready
Jun  7 12:55:19 mia tinc.mia[748]: Executing script tinc-up
Jun  7 12:55:19 mia tinc.mia[748]: Trying to connect to zidler 
(131.193.50.184 port 655)
Jun  7 12:55:19 mia tinc.mia[748]: Connected to zidler (131.193.50.184 
port 655)
Jun  7 12:55:19 mia tinc.mia[748]: Connection with zidler (131.193.50.184 
port 655) activated
------------------------------------------------------------------------------


Any ideas, why I am not able to reach zidler at (192.168.254.201).. 
Thanks
Shashank





On Sat, 7 Jun 2003, Guus Sliepen wrote:

> On Fri, Jun 06, 2003 at 07:14:01PM -0500, Shashank Khanvilkar wrote:
> 
> > My System: Rh 9.0 (2.4.20-13.9), openssl-0.9.7a-5, openssl-devel-0.9.7a-5
> > Autoconf tools: autoconf-2.57-3, automake-1.6.3-5
> [...]
> > 2. So i followed a suggestion from someone and downloaded the cvs version, 
> > and ran autogen.sh. This leads to the following error.
> [...]
> > configure.in:179: error: `po/Makefile.in' is already registered with 
> > AC_CONFIG_FILES.
> > autoconf/status.m4:844: AC_CONFIG_FILES is expanded from...
> > configure.in:179: the top level
> > autom4te: /usr/bin/m4 failed with exit status: 1
> > autoheader: /usr/bin/autom4te failed with exit status: 1
> 
> I cannot reproduce these error, not even with a clean checkout from CVS.
> Maybe some combination of autoconf/make/etc doesn't work right. I
> currently have these versions installed:
> 
> autoconf (GNU Autoconf) 2.57
> autoheader (GNU Autoconf) 2.57
> automake (GNU automake) 1.7.5
> aclocal (GNU automake) 1.7.5
> autopoint (GNU gettext) 0.11.5
> 
> Could you try installing these versions? Also, did you checkout the
> CABAL branch or another branch from CVS?
> 
> 

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