Advanced tunneling, how to do it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK - I need more brains.....

I have two sites a few continents away which I would like to tunnel between.
This is the setup:

All sites running 2.2.16

Site A:
Using private net: 192.168.1.0 (mask 255.255.255.0)
This net has a masquerade server to a static IP as gateway.
The static IP is 210.210.210.210 (no it isn't - I have a problem, I don't
want problemS).

Site B:
Using private net: 192.168.0.0 (mask 255.255.255.0)
The net has a masquerade server to a dynamic (uagh) IP as gateway.
Let us for the example assume that our endpoint is 211.211.211.211 (what an
imagination).

Anyway. Yes I read all I could find and this is to where I got it:
I downloaded the iproute package both places.
SO:

Site A:
ip tunnel add tunl1 mode ipip local 210.210.210.210 remote 211.211.211.211
ifconfig tunl1 210.210.210.210
route add -net 192.168.0.0 netmask 255.255.255.255 gw 210.210.210.210 tunl1

Site B:
ip tunnel add tunl1 mode ipip local 211.211.211.211 remote 210.210.210.210
ifconfig tunl1 211.211.211.211
route add -net 192.168.1.0 netmask 255.255.255.255 gw 211.211.211.211 tunl1


if I ping the remote network (like 192.168.1.1 from 192.168.0.1 or
192.168.0.1 from 192.168.1.1) then the ping never returns. Telnet connection
can not be achived either.
BUT looking at the tunnel statistics (ifconfig) I can see that both tunnel
ends are registering in and outgoing packets in the same amounts. So what
goes into the tunnel seems to come out in the other end.

Anybody knows the secret word?


Cheers,
Dr. Karsten Jeppesen
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux