Date: Tue, 18 Jan 2000 10:01:39 -0800 (PST) From: Kurt@OpenLDAP.org To: freebsd-gnats-submit@FreeBSD.org Subject: conf/16180: firewall rules may require flags to be passed to ipfw Message-ID: <20000118180139.5FCF814C8F@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000118180139.5FCF814C8F>