From owner-freebsd-questions@FreeBSD.ORG Sat Mar 31 22:05:53 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9257116A402 for ; Sat, 31 Mar 2007 22:05:53 +0000 (UTC) (envelope-from bseklecki@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 4406D13C44B for ; Sat, 31 Mar 2007 22:05:53 +0000 (UTC) (envelope-from bseklecki@collaborativefusion.com) Received: from [192.168.4.6] (c-67-171-75-90.hsd1.pa.comcast.net [67.171.75.90]) (AUTH: LOGIN seklecki, TLS: TLSv1/SSLv3,128bits,RC4-MD5) by wingspan with esmtp; Sat, 31 Mar 2007 18:05:52 -0400 id 00056403.460EDB40.0000FA5D From: "Brian A. Seklecki" To: Kevin Glick In-Reply-To: References: Organization: Collaborative Fusion, Inc. Date: Sat, 31 Mar 2007 17:06:07 -0500 Message-Id: <1175378767.7585.50.camel@ingress> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.2.3-10mdk Cc: freebsd-questions@freebsd.org Subject: Re: Router with 2 internet connections X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2007 22:05:53 -0000 Right. Since you can only have one default route, you'd to use static routes out of the second interface make the decision based on "destination IP address" (layer 3 decision making here). To make it based on source address or some layer-4 decision, you'd need a layer4 switch and/or BGP. BGP is your best bet. ~BAS On Fri, 2007-03-30 at 19:09 -0700, Kevin Glick wrote: > I've got a BSD router with two internet connections: > dc0 (DSL) and dc1 (Cable) > > I also have an internal nic: > rl0 (192.168.0.1) > > I've got PF setup and running nat. What I need to know is this; > Can I easily route all outbound traffic from 192.168.0.2 - 192.168.0.250 out > the dc1 interface, AND route traffic from 192.168.0.251 - 192.168.0.254 out > the dc0 interface with PF and something else? > > Currently, PF redirects the traffic correctly, however, the traffic from the > upper block goes out the default route (gateway of dc1). So the traffic > never comes back. > > I guess the problem is that I'm sending the nat'd packets out as the IP of > dc0, but they're being send out dc1. > > Make sense? Anybody follow this, and have a useful suggestion? > > -- > Kevin Glick > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"