/usr/bin/fwb_compile_all is in fwbuilder 5.1.0-4build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | #!/bin/sh
#
#
# Firewall Builder
#
# Copyright (C) 2003 NetCitadel, LLC
#
# Author: Vadim Kurland vadim@vk.crocodile.org
#
# $Id$
#
# This program is free software which we release under the GNU General Public
# License. You may redistribute and/or modify this program under the terms
# of that license as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# To get a copy of the GNU General Public License, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#
XMLFILE="objects.xml" # default fallback if -f option is missing
DIR="."
V=""
LIB="User" # default library
while getopts f:d:l:va opt
do
case "$opt" in
a) all="yes" ;;
v) V="-v " ;;
f) XMLFILE=$OPTARG ;;
d) DIR=$OPTARG ;;
l) LIB=$OPTARG ;;
\?) ;;
esac
done
shift `expr $OPTIND - 1`
test -n "$all" && LIST=`fwbedit list -f $XMLFILE -c -o /${LIB}/Firewalls -F %name%` || {
while test -n "$1"; do
LIST="$LIST $1"
shift
done
}
for f in `echo $LIST`; do
platform=`fwbedit list -f $XMLFILE -F %platform% -o /${LIB}/Firewalls/$f`
id=`fwbedit list -f $XMLFILE -F %id% -o /${LIB}/Firewalls/$f`
case "$platform" in
iptables) comp="fwb_ipt" ;;
ipf) comp="fwb_ipf" ;;
ipfw) comp="fwb_ipfw";;
pf) comp="fwb_pf" ;;
pix) comp="fwb_pix" ;;
\?) echo "Unknown platform \"$platform\""; exit 1 ;;
esac
echo
echo "################ $f"
$comp $V -f $XMLFILE -d $DIR -i $id;
done
|