Help! My first VPN.

Gamaliel G. Lagman gamie.lagman at menusys.net
Tue Jan 14 12:56:28 CET 2003


Hello everybody,

I'm setting up my first virtual private network and I can't get thru 
with this problem.  Here's my current configs:

***/etc/tinc/vpn/tinc.conf***
Name = eci-cebu
ConnectTo = eci-sampaloc
Device = /dev/net/tun
PrivateKeyFile = /etc/tinc/vpn/rsa_key.priv
***

***/etc/tinc/vpn/tinc-up***
#!/bin/sh
ifconfig $INTERFACE hw ether fe:fd:0:0:0:0
ifconfig $INTERFACE 10.10.10.1 netmask 255.255.0.0 -arp
***

***/etc/tinc/vpn/hosts/eci-cebu***
Address = 123.123.123.1
Port = 655
Subnet = 10.10.10.0/24
-----BEGIN RSA PUBLIC KEY-----
...
-----END RSA PUBLIC KEY-----
***

***/etc/tinc/vpn/hosts/eci-sampaloc***
Address = 123.123.123.2
Port = 655
Subnet = 10.10.10.0/24
-----BEGIN RSA PUBLIC KEY-----
...
-----END RSA PUBLIC KEY-----
***

***/etc/modules.conf***
alias char-major-10-200 tun
***


And this what appears in my /var/log/messages:

Jan 14 19:22:24 cebucom1 tinc.vpn[6928]: tincd 1.0pre7 starting
Jan 14 19:22:24 cebucom1 tinc.vpn[6928]: /dev/net/tun is a Linux tun/tap device
Jan 14 19:22:24 cebucom1 /etc/hotplug/net.agent: invoke ifup vpn
Jan 14 19:22:24 cebucom1 tinc:  succeeded
Jan 14 19:22:25 cebucom1 tinc.vpn[6928]: Invalid name for myself!
Jan 14 19:22:25 cebucom1 tinc.vpn[6928]: Unrecoverable error
Jan 14 19:22:25 cebucom1 tinc.vpn[6928]: Restarting in 900 seconds!


But the inteface of the vpn does exist even though I got this message.

vpn       Link encap:Ethernet  HWaddr FE:FD:00:00:00:00
          inet addr:10.10.10.1  Bcast:10.255.255.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: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)

But when I tried to ping the other site (10.10.10.2) with the same type of 
configuration but its unreachable and exactly with the same error also.

Did I miss out anything?  I've tried searching for the archive but I 
didn't found any errors containing "Invalid name for myself".  And to make 
it much more clearer here's what I'm trying to do.


                  Head office LAN                         
		 192.168.30.0/24
			|
                   192.168.30.1
		     Linux Box
  		    10.10.10.1	-> vpn IP add
		   123.123.123.1 -> Internet Add
			|
			|
		 Internet via DSL
			|
			|
		   123.123.123.2 -> Internet Add
		    10.10.10.2	-> vpn IP add
		     Linux Box
		   192.168.0.1
			|
		   192.168.0.0/24
		 Remote Office LAN


Similar with "Example: tinc on a masquerading firewall" except that I'm 
using a DSL connection.  Btw, I'm using Redhat 7.3.  Any help would be 
highly appreciated.


TIA,
~gams


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