From owner-freebsd-net@FreeBSD.ORG Tue Apr 29 18:47:26 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEC171065672 for ; Tue, 29 Apr 2008 18:47:26 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.174]) by mx1.freebsd.org (Postfix) with ESMTP id 4616B8FC26 for ; Tue, 29 Apr 2008 18:47:26 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-047-238.pools.arcor-ip.net [88.66.47.238]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1JqurM2XCi-0000i4; Tue, 29 Apr 2008 20:47:24 +0200 Received: (qmail 50251 invoked from network); 29 Apr 2008 18:46:02 -0000 Received: from myhost.laiers.local (192.168.4.151) by ns1.laiers.local with SMTP; 29 Apr 2008 18:46:02 -0000 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Tue, 29 Apr 2008 20:43:22 +0200 User-Agent: KMail/1.9.9 References: <48134DDE.9010306@elischer.org> <48175B91.1010202@gtcomm.net> <481766A2.7040809@elischer.org> In-Reply-To: <481766A2.7040809@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804292043.22572.max@love2party.net> X-Provags-ID: V01U2FsdGVkX196g/xbTzLvKpnBCI/NwaKz9iOChaaQEsV8m17 16MhG9jHCBJjSlul1YygbkRNe4FkLDcscXNAork/HIteMEecYb kQ6oYs28zfplH7rez2CkQ== Cc: Julian Elischer , "Wilkinson, Alex" , Paul Subject: Re: Multiple routing tables in action... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2008 18:47:26 -0000 On Tuesday 29 April 2008 20:19:14 Julian Elischer wrote: > Paul wrote: > > I've been waiting for something like this. Linux has done policy > > routing for many many years and is very good at it. I prefer to use > > FreeBSD for routing though and this is a feature I have been waiting > > for :) Mainly to use with BGP , having multiple BGP routing tables. > > I would like it to be similar to Cisco's VRF or Juniper's routing > > instance, but maybe that's asking too much. We use it on our > > hardware routers for implementations such as having multiple bgp > > route tables and having customer bandwidth pricing change based on > > which routing table their traffic gets , say.. value customers, > > premium customers, customers who want only certain carriers in their > > bandwidth mix, etc. Would be fun to have support for FBSD with > > quagga/openbgpd etc.. and be able to use dscp for marking or any > > other policy based rule (source ip for instance). > > > > Thanks Julian.. This is a step forward in the right direction :) > > The interaction with routing daemons is something I don't know > enough about. I need someone who knows routing daemons to tell > how to correctly tweek code that sends routing events. > > I think it is possible that events from a particular FIB should only > be reported to routing sockets that are associated with that FIB. > but I'm not sure about this. > > This would mean running a separate instance of the routing daemon for > each FIB (VRF?). Does this sound right to people? OpenBSD "added"[1] a field to the rt_msghdr to indicate/select the source/destination table. If we were to do the same at least OpenBGPB should work with fairly minimal changes. I think it's a sensible approach, too. A routing daemon wouldn't have to select over a dozen sockets to do what is needed and it will be much easier as well. If easily done, a way to "bind" a route socket to a table id would also be nice as it would easily make things work with multi table oblivious daemons. [1]http://www.openbsd.org/cgi-bin/cvsweb/src/sys/net/route.h.diff?r1=1.44&r2=1.45&f=h > > Julian Elischer wrote: > >> Wilkinson, Alex wrote: > >>> 0n Sat, Apr 26, 2008 at 08:44:30AM -0700, Julian Elischer wrote: > >>> >A little progress report > >>> >From a recently installed (6.3) machine.... (plus patches) > >>> > >>> Ok, being ignorant to this, possibly a silly question: > >>> > >>> Why would i want or need multiple routing tables ? > >> > >> any time you wnat to base a route upon something other than just > >> the destination address. It's basically called "Policy based > >> routing". > >> > >> > >> Trivial examples: > >> You have two ISPs and you want to send all SMTP via one link and > >> all other traffic via the other. > >> > >> You have 3 ISPs and want all traffic from the accounting department > >> to go via a particular path (that is encrypted) but regular office > >> chatter to go via another. > >> > >> I have other more complex examples in my work. > >> > >> I'm sure others have more solid examples as well. > >> > >> google for policy routing. > >> _______________________________________________ > >> freebsd-net@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-net > >> To unsubscribe, send any mail to > >> "freebsd-net-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News