From owner-cvs-all@FreeBSD.ORG Wed Jul 16 23:03:41 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BD9F37B401; Wed, 16 Jul 2003 23:03:41 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8CA243F3F; Wed, 16 Jul 2003 23:03:40 -0700 (PDT) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6H63e0U056164; Wed, 16 Jul 2003 23:03:40 -0700 (PDT) (envelope-from luigi@repoman.freebsd.org) Received: (from luigi@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6H63eI6056163; Wed, 16 Jul 2003 23:03:40 -0700 (PDT) Message-Id: <200307170603.h6H63eI6056163@repoman.freebsd.org> From: Luigi Rizzo Date: Wed, 16 Jul 2003 23:03:40 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/sys/netinet ip_fw2.c ip_fw2.h src/sbin/ipfw ipfw.8 ipfw2.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2003 06:03:41 -0000 luigi 2003/07/16 23:03:40 PDT FreeBSD src repository Modified files: (Branch: RELENG_4) sys/netinet ip_fw2.c ip_fw2.h sbin/ipfw ipfw.8 ipfw2.c Log: MFC: sync ipfw2 with the version in -current, including: * implement a '-n' option to do a syntax-check only of ipfw2 rules; * allow spaces after commas in ipfw rules; * support for comma-separated address lists e.g. ipfw add allow ip from not 10.0.0.0/8, 192.168.0.0/16, 1.2.3.4 to me (note the possibility to put a 'not' in front of the entire list, which was not possible with "or blocks"); * allow comments in ipfw rules which are stored together with rules and appear upon an 'ipfw show': ipfw add allow udp from any to any 53 // nameserver * allow set 31 to be used for ordinary (non-default) rules, but with the special feature that rules in set 31 cannot be disabled and are not affected by a 'flush' command (so they must be deleted explicitly). This permits a flexible form of "persistent" rules which should survive across firewall reloads. * allow ranges to be specified in the "ipfw show" and "ipfw list" commands (the same ought to be done for ""ipfw delete"): ipfw show 100-1000 2000 3000-5500 I believe the kernel side of these changes is entirely backward compatible with the old /sbin/ipfw[2], though of course you need to update the userland command to use the new features. Revision Changes Path 1.63.2.37 +123 -66 src/sbin/ipfw/ipfw.8 1.4.2.16 +708 -476 src/sbin/ipfw/ipfw2.c 1.6.2.16 +66 -45 src/sys/netinet/ip_fw2.c 1.1.2.4 +18 -6 src/sys/netinet/ip_fw2.h