All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Removal of ROUTE target - what now?
@ 2007-08-06  1:27 John Lumby
  2007-08-06  8:12 ` Jan Engelhardt
  0 siblings, 1 reply; 8+ messages in thread
From: John Lumby @ 2007-08-06  1:27 UTC (permalink / raw)
  To: david, jengelh; +Cc: netfilter-devel

David Coulson wrote:
>
>ip ru add from a.b.c.d table 20
>ip ro add table 20 default via p.q.r.s
>

Thanks - yes, that works (well you knew that but thanks anyway as I didn't).
>
>you can of course use 'ip ru add fwmark 8 table 20' to use a mark from 
>iptables rather than an IP address
>
Didn't try that - seems cleaner to use just the ip routing mechanism.
>
>Make sure you have reverse path filtering disabled on the interface too.
>
Jan Engelhardt wrote:
>
>Since the routing layer now knows about a.b.c.d->p.q.r.s (it does not
>when you use ipt_ROUTE), things could work even if RPF are on.
>Of course that I what I believe or what I believe should be happening;
>if it is not, feel free to correct me
>
>David Coulson wrote:
> >
> > It has been a while since I was running a configuration like that, 
>however I
> > believe that the kernel does not walk every routing table on the system 
>in
> > order to establish RPF state.
> >
> > Might be wrong though - Been a few years.
>
>According to net/ipv4/fib_frontend.c:fib_validate_source(), it builds a 
>flow
>where src/dst and iif/oif are swapped and then does a fib_lookup(), and if
>the devices match, everything is wonderful.
>
>However, now that I look at it - the flow's TOS is set, but not its fwmark.
>Well, routing code is filled with macros and not instantly 'graspable'.
>Maybe one of the maintainers know better.
>
Well, i tested with and without - seems to work in each case.
I had never looked at RPF before but this particular interface comes up with
RPF enabled, and I first disabled it, then established a few conversations  
(SMTP)  which succeeded, then (without dropping the ppp1 IP interface)
echo 1 >/proc/sys/net/ipv4/conf/ppp1/rp_filter
and sent a few more SMTP conversations and they succeeded too.
Don't know if that was a valid test.

Thanks again

John

P.S.   The patch-o-matic extras web page still refers to ipt_ROUTE

_________________________________________________________________
Show Your Messenger Buddies How You Really Feel 
http://www.freemessengeremoticons.ca/?icid=EMENCA122

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-08-06 17:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1626.1186193632.14817.netfilter-devel@lists.netfilter.org>
2007-08-04  1:28 ` Removal of ROUTE target - what now? John Lumby
2007-08-04  1:37   ` David Coulson
2007-08-04  8:41     ` Jan Engelhardt
2007-08-04 13:47       ` David Coulson
2007-08-04 14:22         ` Jan Engelhardt
2007-08-06  1:27 John Lumby
2007-08-06  8:12 ` Jan Engelhardt
2007-08-06 17:50   ` John Lumby

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.