[Techtalk] Routing/Bridging Question

Stephan Zaniolo nereid at speakeasy.net
Wed Nov 20 16:39:08 EST 2002


  I'm trying to setup a VPN between two networks and having a problem 
routing traffic across the end points. I'm using tinc 
(http://tinc.nl.linux.org/) and Debian 3.0 (testing, kernel 
2.4.18-bf2.4). The boxes I'm setting up the VPN between look like this:

BoxA - eth0 = 192.168.1.2 eth1 = 192.168.254.1 vpn=192.168.1.2 (setup by 
tinc)
BoxB - eth0 = 192.168.2.1 eth1 = 192.168.254.2 vpn=192.168.2.1 (setup by 
tinc)

When tinc is up on both boxes, I can ping both IPs on both boxes (e.g. 
from BoxA, ping 192.168.2.1 works fine). However, I can't ping any of 
the boxes on the network beyond (e.g. BoxA can't ping 192.168.2.2 and 
192.168.2.2 can't ping BoxA). When I ping 192.168.2.2 from A I can see 
the ping crossing the VPN, so I know the VPN is properly setup, but when 
I ping A from 192.168.2.2 I don't see any traffic going across the VPN. 
I don't think it's a problem with my VPN. I think I haven't properly 
setup my boxes to route (bridge?) traffic from vpn to eth0 and eth0 to vpn.

Here's what my routing table looks like on Box A

Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.254.0   0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.0.0     0.0.0.0         255.255.252.0   U     0      0        0 vpn
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

Does anyone have any ideas or resources as to what I need to do?

Thanks,
Stephan








More information about the Techtalk mailing list