From owner-freebsd-security Wed Dec 19 5:48: 3 2001 Delivered-To: freebsd-security@freebsd.org Received: from mail.all.org (bdsl.66.12.117.154.gte.net [66.12.117.154]) by hub.freebsd.org (Postfix) with ESMTP id 500DA37B419 for ; Wed, 19 Dec 2001 05:47:59 -0800 (PST) Message-ID: <02a101c18893$bd5be1d0$0164010a@compops1> From: "Joseph" To: , References: <3C201B38.28785.6DBD8F@localhost> Subject: Re: about ipfw Date: Wed, 19 Dec 2001 08:47:45 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is certainly a FreeBSD-security question. You are missing a "from". Also, try allow instead of pass. ipfw add allow all from any to any via lo in ipfw add allow all from any to any via lo out ----- Original Message ----- From: To: Sent: Tuesday, December 18, 2001 3:44 PM Subject: about ipfw > 1. can ipfw do a TCP keep-state ? > 2. how keep-state combine with "via interface" ? > 3. this ipfw rules don't work: why ? > ipfw add pass all any to any via lo > ipfw add pass all any to any via ${iif} > ipfw add divert natd all from any to any via ${oif} > # Allow TCP through if setup succeeded > ipfw add check-state > ${fwcmd} add deny tcp from any to any established > > # Allow IP fragments to pass through > ${fwcmd} add deny all from any to any via ${oif} frag > > # Allow icmp 0 3 8 11 pass > ${fwcmd} add pass icmp from any to any via ${oif} icmptypes 0,3,8,11 > > # Reject&Log all setup of incoming connections from the outside > ${fwcmd} add deny log tcp from any to any in via ${oif} setup > > # Allow setup of any other TCP connection > ${fwcmd} add pass tcp from any to any out via ${oif} setup keep-state > > # Allow DNS queries out in the world > ${fwcmd} add pass udp from ${oip} to any 53 out via ${oif} keep-state > > # Allow NTP queries out in the world > ${fwcmd} add pass udp from ${oip} to any 123 out via ${oif} keep-state > > ${fwcmd} add deny log all from any to any > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message