From owner-freebsd-questions@FreeBSD.ORG Tue Feb 14 14:55:52 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AB3D16A420 for ; Tue, 14 Feb 2006 14:55:52 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from mta13.adelphia.net (mta13.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC7D643D5D for ; Tue, 14 Feb 2006 14:55:46 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from barbish ([69.172.31.117]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20060214145545.SJXY25152.mta13.adelphia.net@barbish>; Tue, 14 Feb 2006 09:55:45 -0500 From: "fbsd_user" To: "Goran Gajic" , Date: Tue, 14 Feb 2006 09:55:43 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Importance: Normal Cc: freebsd-questions@freebsd.org Subject: RE: IP Routing Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsd_user@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 14:55:52 -0000 You are not correct in that last statement. ipfilter does not have to be compiled into kernel to work. You should read the handbook ipfilter firewall section where it clearly states that is not necessary and tells you how to do it. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Goran Gajic Sent: Tuesday, February 14, 2006 9:44 AM To: fbsd@douville.net Cc: freebsd-questions@freebsd.org Subject: Re: IP Routing Question Hi, You can try using ipf filter to impose source-policy routing: cat > ipf.example pass in quick on em1 to em1:192.168.1.2 from 10.1.0.0/16 to a.b.c.d/32 ^d ipf -f ipf.example This way you will re-route all packets coming from source 10.1/16 to destination a.b.c.d to go to address 192.168.1.2 not to a.b.c.d Note that you have to rebuild your kernel in order to have options IPFILTER enabled. Regards, gg. >I'm trying to set up the routing table to force requests to certain IP >addresses to use a particular ethernet card. I've used the route command >in a number of >ways, but still can't come up with how to force to use em1 instead of >em0, >with the right gateway. _______________________________________________ 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"