6 # Checking which firewall to use.
10 if [ "X${UNAME}" = "XFreeBSD" ]; then
12 if grep 'firewall_enable="YES"' /etc/rc.conf >/dev/null 2>&1; then
19 if grep 'pf_enable="YES"' /etc/rc.conf >/dev/null 2>&1; then
26 elif [ "X${UNAME}" = "XDarwin" ]; then
36 elif [ "X${UNAME}" = "XOpenBSD" ]; then
37 if grep 'pf_enable="YES"' /etc/rc.conf >/dev/null 2>&1; then
44 # If file is set and execute flag is set
45 if [ ! "X$FILE" = "X" ]; then
46 if [ $# -eq 1 ] && [ "X$1" = "Xexecute" ]; then
47 cp -pr ../active-response/firewall-drop.sh ../active-response/firewalls/default-firewall-drop.sh
48 cp -pr ../active-response/firewalls/$FILE ../active-response/firewall-drop.sh