From owner-freebsd-hackers Sat Aug 24 13:12:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26E2037B400 for ; Sat, 24 Aug 2002 13:12:09 -0700 (PDT) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC85C43E75 for ; Sat, 24 Aug 2002 13:12:08 -0700 (PDT) (envelope-from crist.clark@attbi.com) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020824201208.VOZZ1186.rwcrmhc52.attbi.com@blossom.cjclark.org>; Sat, 24 Aug 2002 20:12:08 +0000 Received: from blossom.cjclark.org (localhost. [127.0.0.1]) by blossom.cjclark.org (8.12.3/8.12.3) with ESMTP id g7OKC7JK094796; Sat, 24 Aug 2002 13:12:07 -0700 (PDT) (envelope-from crist.clark@attbi.com) Received: (from cjc@localhost) by blossom.cjclark.org (8.12.3/8.12.3/Submit) id g7OKC74B094795; Sat, 24 Aug 2002 13:12:07 -0700 (PDT) X-Authentication-Warning: blossom.cjclark.org: cjc set sender to crist.clark@attbi.com using -f Date: Sat, 24 Aug 2002 13:12:07 -0700 From: "Crist J. Clark" To: Sean Hamilton Cc: hackers@FreeBSD.ORG Subject: Re: Weird NAT setup Message-ID: <20020824201207.GB94424@blossom.cjclark.org> Reply-To: "Crist J. Clark" References: <001401c24b18$ee8e59c0$911de8d8@slugabed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001401c24b18$ee8e59c0$911de8d8@slugabed.org> User-Agent: Mutt/1.4i X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Aug 23, 2002 at 07:49:56PM -0700, Sean Hamilton wrote: [snip] > My understanding of how NAT works is far from complete, so I don't exactly > see why this isn't working. Is there a solution/fix, or at least a reason? IPFilter NAT and bridging in FreeBSD will not necessarily work well together. Basically, IPFilter doesn't know much of anything about the bridge. In your configuration, I wouldn't expect it to even know fxp1 exists. I'm surprised this works as well for you as it does. If you want something a little more robust, I would recommend either using ipfw(8) and natd(8), which have a bit more low-level control over this kind of thing, or if you want to stick with IPFilter, OpenBSD has more mature bridging-IPFilter support, although the IPFilter support in OpenBSD has degraded somewhat since it was dropped from the base. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message