From owner-freebsd-security Tue Dec 18 12:43:44 2001 Delivered-To: freebsd-security@freebsd.org Received: from www.suntop-cn.com (www.suntop-cn.com [61.140.76.155]) by hub.freebsd.org (Postfix) with ESMTP id C5A0237B416 for ; Tue, 18 Dec 2001 12:43:35 -0800 (PST) Received: from win ([61.144.141.191]) (authenticated) by www.suntop-cn.com (8.11.3/8.11.3) with ESMTP id fBIKhSr81657 for ; Wed, 19 Dec 2001 04:43:28 +0800 (CST) (envelope-from slack@suntop-cn.com) From: slack@suntop-cn.com To: freebsd-security@FreeBSD.ORG Date: Wed, 19 Dec 2001 04:44:40 +0800 MIME-Version: 1.0 Subject: about ipfw Message-ID: <3C201B38.28785.6DBD8F@localhost> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body 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 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