From owner-freebsd-questions@FreeBSD.ORG Thu Sep 17 17:45:07 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83C49106568B for ; Thu, 17 Sep 2009 17:45:07 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id F06358FC16 for ; Thu, 17 Sep 2009 17:45:06 +0000 (UTC) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id n8HHj2ma034792; Thu, 17 Sep 2009 19:45:02 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id n8HHj15C034791; Thu, 17 Sep 2009 19:45:01 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Thu, 17 Sep 2009 19:45:01 +0200 From: Ruben de Groot To: Robert Huff Message-ID: <20090917174501.GA34712@ei.bzerk.org> References: <19122.17463.670129.782291@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19122.17463.670129.782291@jerusalem.litteratus.org> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (ei.bzerk.org [127.0.0.1]); Thu, 17 Sep 2009 19:45:05 +0200 (CEST) Cc: questions@freebsd.org Subject: Re: ipfw + NAT doesn't work 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: Thu, 17 Sep 2009 17:45:07 -0000 On Thu, Sep 17, 2009 at 10:14:15AM -0400, Robert Huff typed: > > I have a machine running > > FreeBSD 9.0-CURRENT #3: Tue Sep 15 18:49:58 EDT 2009 amd64 > > It has this in the config file for the running kernel: > > options IPFIREWALL #firewall > options IPFIREWALL_VERBOSE #enable logging to syslogd(8) > options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity > options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default > options IPFIREWALL_NAT #ipfw kernel nat support > options LIBALIAS > > It (10.0.0.1) connects correctly to another machine (10.0.0.3); > I know because .3 mounts one of .1's disks using Samba. > With the ipfw rules appended below, I can't NAT, nor should I > be able to. ("em0" faces the Internet; "em1" faces the other > machine.) > However: using these I still can't get through Through to what? You seem to be able to connect on a local subnet, but not to the internet through NAT, which you say is ok, because you shouldn't ? Please explain exactly what you want to do. > Have I forgotten something? Or misunderstood something? > If not ... how do I figure out what's wrong? /var/log/security is a good place to start, as your config seems to log allmost all denies. BTW, CURRENT is a development branch. Fine if you want to run it, but you should do some basic debugging yourself before posting problems with it. And then the -questions list is probably not the best place to find answers. regards, Ruben