LARTC
[Top] [All Lists]

Re: [LARTC] 2 gateways - routing based in source address

To: lartc@mailman.ds9a.nl
Subject: Re: [LARTC] 2 gateways - routing based in source address
From: "Jorge Evangelista" <netsecuredata@gmail.com>
Date: Mon, 28 May 2007 23:32:25 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aXH+xolLTnXrZFt7PPcoxm7Z2LbDUrsinxgIv++rPTNOne7UAS4AGoOd3QmOIRVhDs7sk4gtd7kBhlcEY8NrRY4banSLawc4WFn0yJtKhHPyznvGFr4GY1E1scmSjazpwAAkCrQTFl1xPs8xuH//VDZqW4X1LdCyXOEl6tx6C5I=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o4vgjZ7kMuEol/7hhz1v5GTgvqvBuZnS64jHDN9QsIZVIsP3C8xUrTju8XPzLT3TEBry0WJu+zbXcbZRqfLkhj/hkTYU6NyEie04K2wK0kEbElh0a6Byx1o7VqSHwEXg70ML7pFvdMyhAyJENxZeDbdz5Y9msBJdVl9XDBX/FNw=
In-reply-to: <20070528171132.3f2cf013@catlap>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <20070527082158.ED7E14053@outpost.ds9a.nl> <20070528171132.3f2cf013@catlap>
Sender: lartc-bounces@mailman.ds9a.nl
Hi Pablo,

You have to configure your box linux similar to:

ip rule add from 10.20.0.0/24   to 0.0.0.0/0  table 100
ip route add default via 192.168.0.254  table 100

ip rule add from 10.30.0.0/24  to 0.0.0.0/0  table 200
ip route add default via 192.168.1.254 table 200




On 5/28/07, Marek Kierdelewicz <marek@piasta.pl> wrote:
>Hello,


>I don't have IP on this ranges in my linux box. There is another router
>under my linux box in my topology. But this customers arrives in my
>eth2 interface. I make SNAT fort his networks in my linux box.
>...

What you need is simple source address based policy routing as
described here:
http://lartc.org/howto/lartc.rpdb.html

Example on lartc howto is pretty straightforward. Many inpolite
people would even say "RTFM".

pozdrawiam,
Marek Kierdelewicz
KoBa ISP
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc



--
"The network is the computer"
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>