All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] large routing table
@ 2004-03-30 22:56 Rene Gallati
  2004-03-31  1:06 ` alex
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Rene Gallati @ 2004-03-30 22:56 UTC (permalink / raw)
  To: lartc

Hello List,

I have a little non-standard problem (or so I guess). I'm getting a 
sponsored server on a backbone for almost nothing - which is quite nice. 
However there is a string attached: Since the bandwith to foreign 
countries is expensive, while in-land bandwith is almost free, I need to 
shape down access to all "foreign" IPs.

Now I have a (large) list of routes/prefixes for destinations which are 
ok - a whitelist if you want. The question I have now is, how do I best 
proceed in using that list so that the kernel does not spend too much 
time looking it up for every single packet.

Is the routing table hashed by default so access is fast and I can just 
pump in the ~100KBytes of ip prefixes ? Or does it traverse them 
linearly and I need to build a hierarchical structure so that it will be 
fast ? (sort of like in section 12.4 of the LARTC howto with the filters?)

I've also toyed with the idea of doing it in netfilter since I know 
netfilter quite a lot better than tc and ip but it is mostly outgoing 
traffic that is a problem and I sort of feel that this is better done by 
the routing/filtering infrastructure than by the firewall.

Any advice?

Thanks in advance

René
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2004-03-31 21:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-30 22:56 [LARTC] large routing table Rene Gallati
2004-03-31  1:06 ` alex
2004-03-31  1:25 ` alex
2004-03-31  1:26 ` Roy
2004-03-31  1:45 ` Roy
2004-03-31  9:50 ` Jeroen Vriesman
2004-03-31 10:26 ` Jeroen Vriesman
2004-03-31 21:01 ` Rene Gallati
2004-03-31 21:19 ` Rene Gallati
2004-03-31 21:24 ` Rene Gallati
2004-03-31 21:32 ` Rene Gallati
2004-03-31 21:41 ` Adrian Vasile

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.