From owner-freebsd-net Tue Nov 21 5:41:37 2000 Delivered-To: freebsd-net@freebsd.org Received: from vbook.express.ru (vbook.express.ru [212.24.37.106]) by hub.freebsd.org (Postfix) with ESMTP id D095A37B4C5 for ; Tue, 21 Nov 2000 05:41:32 -0800 (PST) Received: (from vova@localhost) by vbook.express.ru (8.9.3/8.9.3) id QAA16381; Tue, 21 Nov 2000 16:41:11 +0300 (MSK) (envelope-from vova) From: "Vladimir B. Grebenschikov" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14874.31606.944182.812070@vbook.express.ru> Date: Tue, 21 Nov 2000 16:41:10 +0300 (MSK) To: Kazufumi-MIT-Mitani Cc: freebsd-net@FreeBSD.ORG Subject: ifdefault In-Reply-To: <200010300914.SAA07875@mit-s.otaru-uc.ac.jp> References: <200010300914.SAA07875@mit-s.otaru-uc.ac.jp> X-Mailer: VM 6.72 under 21.1 (patch 9) "Canyonlands" XEmacs Lucid Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Kazufumi-MIT-Mitani writes: > Hi. > > Is there any successful port of Paul Vixie's ifdefault > (ftp://ftp.vix.com/pub/vixie/ifdefault/) > to FreeBSD? I think it can be emulated with ipfw: let's imagin that we have two providers A and B with two networks allocated for us: a.a.a.a/A and b.b.b.b/B and connected to interfaces aa0 ii bb0 with nexthops a.a.next.hop and b.b.next.hop for default routes # route add default -iface lo1 # ipfw add fwd a.a.next.hop ip from a.a.a.a/A to any out via lo1 # ipfw add fwd b.b.next.hop ip from b.b.b.b/B to any out via lo1 there we can use samething like defeault 0.0.0.0/0 route for other networks # ipfw add fwd some.default.next.hop ip from any to any out via lo1 -- TSB Russian Express, Moscow Vladimir B. Grebenschikov, vova@express.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message