From owner-freebsd-questions@FreeBSD.ORG Tue Mar 7 16:07:36 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 61C0816A420 for ; Tue, 7 Mar 2006 16:07:36 +0000 (GMT) (envelope-from petre@kgb.ro) Received: from kgb.rdsbv.ro (kgb.rdsbv.ro [82.78.148.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id D658D43D49 for ; Tue, 7 Mar 2006 16:07:35 +0000 (GMT) (envelope-from petre@kgb.ro) Received: from localhost (localhost [127.0.0.1]) by kgb.rdsbv.ro (Postfix) with ESMTP id A1BC311670; Tue, 7 Mar 2006 18:07:50 +0200 (EET) Received: from kgb.rdsbv.ro ([127.0.0.1]) by localhost (kgb.rdsbv.ro [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 91042-07; Tue, 7 Mar 2006 18:07:49 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by kgb.rdsbv.ro (Postfix) with ESMTP id 3CBC31145C; Tue, 7 Mar 2006 18:07:49 +0200 (EET) Date: Tue, 7 Mar 2006 18:07:48 +0200 From: Petre Bandac To: Tillman Hodgson Message-ID: <20060307180748.75c157ff@localhost> In-Reply-To: <20060307154951.GL95501@seekingfire.com> References: <20060307125859.1768f85e@localhost> <20060307154951.GL95501@seekingfire.com> Organization: my own organization X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.11; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at lubyanka.kgb.ro Cc: freebsd-questions@freebsd.org Subject: Re: linux iproute2 replacement 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: Tue, 07 Mar 2006 16:07:36 -0000 On Tue, 7 Mar 2006 09:49:51 -0600 Anno Domini, the honourable Tillman Hodgson wrote using one of his keyboards: > On Tue, Mar 07, 2006 at 12:58:59PM +0200, Petre Bandac wrote: > > hallo > > > > I am trying to migrate a dual-homed linux box to freebsd; how can I > > achieve the src routing iproute2 does on freebsd ? > > There isn't currently a direct routing equivalent. I "cheat" and use > IPF like so (the IPs are faked): > > # source-IP routed traffic > # Note that the "on 'interface'" has to be the one with my default > route pass out quick on hme0 to tun6 from 10.0.0.3/24 > to !192.168.0.0/16 keep state block in on tun6 from any to > 10.0.0.3/24 head 200 ... group 200 rules follow ... > > You can do the same with IPFW and PF. hoping for a full solution :) can it be done only with ipfw ? if yes, how ? thanks a lot, petre > -T > > -- Petre Bandac Network Scientist - petre@kgb.ro