connecting 2 home-lan's ?

mutombo mutombomania at gmx.de
Wed Mar 5 03:16:02 CET 2003


i have quite some problems getting 2 lans together with tinc,
setup is :
2 linuxrouter connected to the inet.
behind everyone is a subnet 192.168.0.0/255.255.0.0 with some normal 
windowsworkstations.
these 2 subnets should be merged to one.
we already connected the 2 linuxboxes with tinc and it worked smooth. but 
the subnets behind the routers werent pingable.
so I thought we need ethernet bridging (please correct me if im wrong !! 
not really sure...)

we used this setup on both boxes:

/etc/tinc/muto/

tinc.conf:

Name = mutombo
ConnectTo = rhino
Device = /dev/net/tun
PrivateKeyFile = /etc/tinc/muto/rsa_key.priv
Mode = router

tinc-up:
ifconfig muto 0.0.0.0
brctl addif bridge muto
ifconfig muto up

hosts/

mutombo:

Address = mutombo.dns.org
-----BEGIN RSA PUBLIC KEY-----
...
-----END RSA PUBLIC KEY-----

rhino:

Address = rhino.dns.org
-----BEGIN RSA PUBLIC KEY-----
...
-----END RSA PUBLIC KEY-----


ifconfig:

bridge    Protokoll:Ethernet  Hardware Adresse 00:E0:7D:B4:A0:72
           inet Adresse:192.168.1.2  Bcast:192.168.1.255  Maske:255.255.0.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0      Protokoll:Ethernet  Hardware Adresse 00:E0:7D:B4:A0:72
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

muto      Protokoll:Ethernet  Hardware Adresse 00:FF:F1:8D:FD:2E
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

ppp0      Protokoll:Punkt-zu-Punkt Verbindung
           inet 
Adresse:217.84.146.126  P-z-P:217.5.98.54  Maske:255.255.255.255
           UP PUNKTZUPUNKT RUNNING NOARP MULTICAST  MTU:1492  Metric:1


route:

217.5.98.54     *               255.255.255.255 UH    0      0        0 ppp0
192.168.0.0     *               255.255.0.0     U     0      0        0 bridge
default         217.5.98.54     0.0.0.0         UG    0      0        0 ppp0


ifconfig and route same on both boxes exept ppp0 is the external interface 
and has a different ip.


syslog:
tinc.muto[11805]: tincd 1.0pre8 starting
tinc.muto[11805]: /dev/net/tun is a Linux tun/tap device
kernel: device muto entered promiscuous mode
kernel: bridge: port 2(muto) entering listening state
router tinc.muto[11805]: Ready
router kernel: bridge: port 2(muto) entering learning state
router kernel: bridge: port 2(muto) entering forwarding state
router kernel: bridge: topology change detected, propagating


but there is no connection possible between these 2 networks.
perhaps i've understand something horrible wrong and this could be done 
much easier.
a nice kick in the right direction would be very nice :)

greetings

christian


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