From: Tomas Bonnedahl <tomas@yes.nu>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] policy routing at its best
Date: Tue, 11 Mar 2003 16:32:51 +0000 [thread overview]
Message-ID: <marc-lartc-104740045026855@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104696497925588@msgid-missing>
i have some additional information regarding this issue with policy routing.
on the router that has policy routing implemented, read further down for
more information on my gols, three ethernet interfaces exists.
since the routing table 'main' just consists of a route to 192.168.1/24
with a prohihbit 0/0, you cannot from the router reach a network
that is located on some of the other interfaces than 192.168.1/24 exists
on. this is because the src address in the packet will be the address of
that interface which the packet will exit. according to the rules that exists
in the RPDB, that address will use the routing table 'main' which, in turn,
does not have a route to that network.
the solution to this would be to:
1. make (two) rules which says "if the src address of a packet is the adress
of an interface, use table 'all'". (also note that im using the /32 address)
2. add, in routing table 'main', routes to these /32 addresses.
the first part here is used so that a packet could be _sent_ away correct, the
second part is used so that a packets can come _back_ correct.
im sure martin have some insight in this, perhaps a simpler solution?
indeed, i did not think of this when implementing policy routing since i was
only concerned with networks and not the router itself.
i hope this will help someone struggeling with policy routing.
best regards,
tomas bonnedahl
On Thu, Mar 06, 2003 at 04:31:42PM +0100, Tomas Bonnedahl wrote:
> hello list (and martin) ;x
>
> i have now composed my final(?) policy routing design.
>
> the goals i had when beginning with this, for you that have not follow
> mine and martins thread, was to 1) only let 192.168.1/24 to see all routes,
> 2) not route between defined networks, except to and from 192.168.1/24 and 3) not
> defined networks should only be able to reach 192.168.1/24.
>
> this might sound simple. it wasnt for me.
>
> the solution i came up with, after days and days of thinking (and patience) was
> this:
>
> two routing tables, one called "ALL" that, suprisingly, held routes to all networks defined
> and a default route to internet. the other called "main", just for ease, that held one route to
> 192.168.1/24 and had a default prohibit.
>
> the one rule that exists just says "if src = 192.168.1/24 use table ALL". of course there is
> an additional rule, the standard one that says "from all lookup main" with a number of 32766.
>
> so, for you that doesnt understand my poor english, literally every network that passes, except
> from 192.168.1/24, will use the main table that just holds the route to 192.168.1/24 and the
> prohibit one.
>
>
> this so simple, something just has to be wrong. feel free to englighten me.
>
>
> please flame.
>
> best regards,
> tomas bonnedahl
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-03-11 16:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-06 15:31 [LARTC] policy routing at its best Tomas Bonnedahl
2003-03-08 2:44 ` Martin A. Brown
2003-03-11 16:32 ` Tomas Bonnedahl [this message]
2003-03-11 17:07 ` Tomas Bonnedahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-104740045026855@msgid-missing \
--to=tomas@yes.nu \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.