Back out the hook to execute the file ${firewall_type}. The intended

purpose of the hook was to provide the ability for a shell program to
instantiate the firewall rules instead of forcing them to be
statically coded.  This functionality was already present through the
use of ${firewall_script}, and I see no need to keep the
${firewall_type} hook around.

Reminded by: Dag-Erling Smorgrav <des@freebsd.org>
This commit is contained in:
Brian S. Dean 2000-04-27 00:48:59 +00:00
parent e419521997
commit ee4619f2a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59669
2 changed files with 3 additions and 7 deletions

View File

@ -228,9 +228,7 @@ case ${firewall_type} in
[Uu][Nn][Kk][Nn][Oo][Ww][Nn])
;;
*)
if [ -x "${firewall_type}" ]; then
. ${firewall_type}
elif [ -r "${firewall_type}" ]; then
if [ -r "${firewall_type}" ]; then
${fwcmd} ${firewall_flags} ${firewall_type}
fi
;;

View File

@ -168,10 +168,8 @@ are
.Dq client
- basic protection for a workstation;
.Dq simple
- basic protection for a LAN.
If a filename is specified, the full path must be given;
if the file is executable, it is sourced, otherwise if the file is
just readable, it is used as input into the ipfw program.
- basic protection for a LAN. If a filename is specified, the full path
must be given.
.It Ar firewall_quiet
(bool) Set to
.Ar YES