Private Address Routing via Tunnels

Linux Advanced Routing and Traffic Control

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

 



Hi,

I'm trying to do some horrible private address routing between networks.
Is there a way to handle the following? I'm guessing policy routing 
*might* be the way, but anyway...

Two networks, accessible via public addresses -- a /29 on each. Each
network, however, has more machines than this, so one also has 
192.168.0.0/24 and the other has 192.168.1.0/24.

I have an IPIP tunnel between the networks -- 192.168.0.252 -> .253,
and routing entries like:
192.168.0.253   *               255.255.255.255 UH    0      0        0 tunl1
192.168.1.0     192.168.0.253   255.255.255.0   UG    0      0        0 tunl1
On the other end, .252 and network 192.168.0.0 via it.

My problem is routing from *public* addresses on network A to *private*
addresses on network B, or vice versa. (Private <-> private is fine).

I presume that the problem is that returning packets from the private
address to the public address tries to send it over the wider Internet,
but the packets are lost since they have private source addresses.
Somehow, I need to send only packets *from* private addresses *to*
public addresses on my other network back via the IPIP tunnel.

Am I right in that assumption? If so, is policy routing the way to go
there, or is there some other way?

Thanks,
Alan
-- 
Alan Ford * alan@xxxxxxxxxxxxxx 
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux