From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 20:01:57 2007 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 9C97C16A46C for ; Fri, 2 Nov 2007 20:01:57 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by mx1.freebsd.org (Postfix) with ESMTP id 545FF13C4B6 for ; Fri, 2 Nov 2007 20:01:57 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so790733wxd for ; Fri, 02 Nov 2007 13:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=5A/ReNRt65uS0aR+e95LEkUllMDi2uCmjXJqYr+73Vs=; b=RnoW5y/iVfiwRXCwwFOB8p5FkQSmq/OFWfZEbjXSNIpw7wiQZyKgs0D8G6O6irzROO7weZlFS+NT0jJoHfrRAIzFNMxibmjO1jd/QcNyfCy0A8PNNEcDdm2FNV0gkfw0mCIIyfXadsusSA+mkfly6GTqmqxBLY/6Xovm7oSSwYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=WIpQDlb6RHj1n1xJC/WX5mPq0LpiR2lxnNYDXD+gmNPlGvFgBBpr5A4Ae7eo8stuPPxrnQZlXZmqFn24BBVHGY4lQbwvuSRF8z0ozcCIo00xAIm1XeCSPBp8DwsEW3BdsZlOOTQ0HgQIrw1Oq91Qf1LClSFAPxzQiWNneyeeZk4= Received: by 10.70.45.10 with SMTP id s10mr3193349wxs.1194033689360; Fri, 02 Nov 2007 13:01:29 -0700 (PDT) Received: from ?192.168.17.10? ( [67.190.229.42]) by mx.google.com with ESMTPS id i19sm9252520wxd.2007.11.02.13.01.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Nov 2007 13:01:27 -0700 (PDT) Message-ID: <472B8215.4090209@gmail.com> Date: Fri, 02 Nov 2007 15:01:25 -0500 From: Jack Barnett User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) To: jackbarnett@gmail.com References: <472AF4FF.9000803@gmail.com> <20071102191207.GA79177@kongemord.krig.net> <472B7DDB.7040606@gmail.com> <472B7E57.8050003@gmail.com> <472B8005.9090602@gmail.com> In-Reply-To: <472B8005.9090602@gmail.com> Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Bob Hall , Freebsd questions Subject: Re: IPFW Rules and Games X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jackbarnett@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2007 20:01:57 -0000 Jack Barnett wrote: Jack Barnett wrote: Jack Barnett wrote: Bob Hall wrote: On Fri, Nov 02, 2007 at 04:59:27AM -0500, Jack Barnett wrote: I added this for a temporary fix: ${fwcmd} add pass all from any to any I don't think that is the right answer; That allows to much in? Yes. I've tried these per the docs: ${fwcmd} add allow all from any to any out via {$iip} setup ${fwcmd} add allow all from any to any out via {$iip} established ${fwcmd} add allow all from any to any in via {$iip} established and also a bunch of others; but none of them worked. Try oip instead of iip. iip is your internal IP address, so anything going out from iip is going to your lan, and anything coming in to iip is coming from your lan. You want to control packets communicating with the outside world, so you want to control them at oip. Sorry, that didn't work. I also tried this: ${fwcmd} add allow tcp from any to any via ${oip} setup ${fwcmd} add allow udp from any to any via ${oip} setup ${fwcmd} add allow tcp from any to any via ${oip} established ${fwcmd} add allow udp from any to any via ${oip} established That also blocks it. :( Even tried this and still doesn't work. ${fwcmd} add allow tcp from any to any via ${oip} ${fwcmd} add allow udp from any to any via ${oip} Grrr, this doesn't work either: # statefull ${fwcmd} add check-state ${fwcmd} add allow tcp from any to any established ${fwcmd} add allow all from any to any out keep-state ${fwcmd} add allow icmp from any to any This thread talks about the same problem: [1]http://lists.freebsd.org/pipermail/freebsd-ipfw/2005-December/00225 8.html "You will most likely find that dynamic rules will allow this ingress traffic, without the need to explicitly allow it." But unfortunately there is no follow up reply in that archive. References 1. http://lists.freebsd.org/pipermail/freebsd-ipfw/2005-December/002258.html