From owner-freebsd-net@FreeBSD.ORG Tue Jan 27 07:51:32 2009 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 28D13106566C for ; Tue, 27 Jan 2009 07:51:32 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outI.internet-mail-service.net (outi.internet-mail-service.net [216.240.47.232]) by mx1.freebsd.org (Postfix) with ESMTP id 0F14F8FC2D for ; Tue, 27 Jan 2009 07:51:32 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 847C024EC; Mon, 26 Jan 2009 23:51:54 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 41F842D6020; Mon, 26 Jan 2009 23:51:31 -0800 (PST) Message-ID: <497EBCFF.5050802@elischer.org> Date: Mon, 26 Jan 2009 23:51:27 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: jmaps-fbsdnet@fireburns.net References: <20090127051809.GA21017@fireburns.net> In-Reply-To: <20090127051809.GA21017@fireburns.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Multiple ISP routing by port 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, 27 Jan 2009 07:51:32 -0000 jmaps-fbsdnet@fireburns.net wrote: > I've read through what I could find in this list and also in the > top 50 results on google... I can't find anything that'll actually > make this work. yes this i stricky for several reasons > > My DSL ISP is too far away to give me anything faster than 1.5mbps > down. In despiration I signed up for comcast to use for bulk > traffic. I sympathize. I can only get 800kb/s at 17000 feet.. (1.5Mb/s works *sometimes*) > > Thus, I want to route critical traffic (22, 25, 53, (maybe) 80, > 443) through the DSL provider and the rest through cable. > > I really feel like this should be possible with PF with something > like: > > nat on $dsl_if from ($int_if:network) to any port $dslports -> > ($dsl_if) nat on $cbl_if from ($int_if:network) to any -> ($cbl_if) > well, yes but you are only doing the nat on teh interface AFTER the decision has been made as to which interface it will go out on. > > or > > pass in quick on $int_if route-to { ($dsl_if $dsl_gw) } proto { tcp > udp } from ($int_if:network) to any port $dslports > > Neither (or both) seem to do it. All traffic ends up getting routed > through whichever ISP i have set as the default route. in 7.1 you now have the ability to have multiple routing tables. (in 8.0 you also have multiple defaults) now I'm not a pf person, prefering ipfw but in ipfw you can do: setfib 1 ip from any to any 80,22,25,53 in recv ${inside_if} all other packets will use FIB 0.. and then nat on each interface... the you define two routing tables (FIBs) with different default routes. pf has in 8.0 got multiple fib support but I can't remember if it is in 7.1. you'll have to check > > Now, I hear i can go over to linux and just configure both default > routes at the same time (trivial with iproute2). But I'd rather > avoid that if at all possible. in 8.x you can do that too. > > Is there some trick I'm missing? Does quagga (bgpd) allow for this > kind of routing scheme? > > Thanks, Jesse _______________________________________________ > 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"