From owner-freebsd-bugs Tue Jan 18 10:10:31 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3DBD515070 for ; Tue, 18 Jan 2000 10:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA07318; Tue, 18 Jan 2000 10:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 5FCF814C8F; Tue, 18 Jan 2000 10:01:39 -0800 (PST) Message-Id: <20000118180139.5FCF814C8F@hub.freebsd.org> Date: Tue, 18 Jan 2000 10:01:39 -0800 (PST) From: Kurt@OpenLDAP.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/16180: firewall rules may require flags to be passed to ipfw Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16180 >Category: conf >Synopsis: firewall rules may require flags to be passed to ipfw >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 18 10:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Kurt Zeilenga >Release: FreeBSD 3.4-STABLE >Organization: OpenLDAP >Environment: FreeBSD boole.openldap.org 3.4-STABLE FreeBSD 3.4-STABLE #6: Wed Jan 12 13:36:53 PST 2000 kurt@boole.openldap.org:/work/usr/src/sys/compile/OPENLDAP-SMP i386 >Description: For user specified firewall types (rc.conf $firewall_type), rc.firewall simply calls ipfw with $firewall_type as the only argument. It would be nice if there was a mechanism to pass additional flags to ipfw, such as "-p /usr/bin/cpp". Attached is a small patch to allows, but does not require, $firewall_flags to set in rc.conf and for these flags to be passed to ipfw when a user has specified an alternative firewall type. It is meant to be used as follows: firewall_enable="YES" firewall_script="/etc/rc.firewall" firewall_type="/etc/firewall.ipfw" firewall_quiet="YES" firewall_flags="-p /usr/bin/cpp -D router" >How-To-Repeat: >Fix: --- rc.firewall Wed Sep 29 21:56:27 1999 +++ /etc/rc.firewall Wed Jan 12 11:31:53 2000 @@ -187,5 +187,5 @@ # Everything else is denied as default. elif [ "${firewall_type}" != "UNKNOWN" -a -r "${firewall_type}" ]; then - $fwcmd ${firewall_type} + $fwcmd ${firewall_flags} ${firewall_type} fi >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message