[LARTC] How do I collapse this configuration into 1 router.

Linux Advanced Routing and Traffic Control

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

 



My problem is that I cannot practically renumber LAN1 & LAN2 to have
different addresses. Is there any way to cope with this? The only thing I
could think of was SNATing each of LAN1 & LAN2 onto 2 addresses in another
private address subnet by routing their traffic through the lookback
interface, but I'm not sure how to route the returning traffic as it comes
out of the loopback (presumably I'd have to do it by both source and
destination address).

Chris.

----- Original Message -----
From: "Bartek Krajnik" <bartek@bicom.pl>
To: "Chris Paulson-Ellis" <chris@edesix.com>
Cc: <lartc@mailman.ds9a.nl>
Sent: Saturday, February 15, 2003 5:56 PM
Subject: Re: [LARTC] How do I collapse this configuration into 1 router.

On 14-02-2003 at 01:26:00PM -0000, Chris Paulson-Ellis wrote:
CPE> Hi,
CPE>
CPE> I want the collapse the following configuration into 1 router...
CPE>
CPE> LAN1:192.168.1.0/24 --- Router1 [SNAT onto 10.0.0.1] --- LAN3
CPE> LAN2:192.168.1.0/24 --- Router2 [SNAT onto 10.0.0.2] --- LAN3
CPE> LAN3:10.0.0.0/8 --- Router3 [SNAT onto public IP] --- Internet
CPE>
CPE> Routers 1 & 2 SNAT traffic from LAN1 & LAN2 respectively on to LAN3 and
CPE> Router3 then SNATs from LAN3 onto the public Internet connection.
CPE>
CPE> My question is how I can collapse this into a single router (Router3),
CPE> eliminating LAN3, without renumbering LAN 1 or 2 so they don't have
CPE> duplicate adresses?
CPE>
If they don't have duplicate addresses connect them together and leave
Router3 with SNAT.
[snip]




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