From owner-freebsd-questions@FreeBSD.ORG Sun Jun 28 14:45:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B7441065670 for ; Sun, 28 Jun 2009 14:45:47 +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 1A66E8FC19 for ; Sun, 28 Jun 2009 14:45:46 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id n5SEikD4071669; Sun, 28 Jun 2009 16:44:46 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id n5SEikLZ071668; Sun, 28 Jun 2009 16:44:46 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Sun, 28 Jun 2009 16:44:45 +0200 From: Ruben de Groot To: Anton Message-ID: <20090628144445.GA69442@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Anton , freebsd-questions@freebsd.org References: <499941928.20090628141400@sng.by> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499941928.20090628141400@sng.by> 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]); Sun, 28 Jun 2009 16:45:45 +0200 (CEST) Cc: freebsd-questions@freebsd.org Subject: Re: IPFW: Need some help 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: Sun, 28 Jun 2009 14:45:47 -0000 On Sun, Jun 28, 2009 at 02:14:00PM +0300, Anton typed: > > Hello all, > > I'm new to *nix and now, while configuring IPFW Firewall on FreeBSD > 7.2 = has stuck in a problem: > > After packet from my network is passed to natd demon - it is returning > t= o firewall (it is normal, as I think ;-) ), but I see another > abnormal thin= g: when it is returned to firewall, it does not come > under rule which state= s to allow packet from some host in my > network, and goes under rule which a= llows packets from FreeBSD box. This is normal. That's because the source address has allready been rewritten by natd, so your rule about a specific host in your network doesn't apply anymore. Try moving this rule before the divert rule in your ipfw config. Ruben