4 # Checking which firewall to use.
9 if [ "X${UNAME}" = "XFreeBSD" ]; then
11 grep 'firewall_enable="YES"' /etc/rc.conf >/dev/null 2>&1
19 grep 'pf_enable="YES"' /etc/rc.conf >/dev/null 2>&1
27 elif [ "X${UNAME}" = "Darwin" ]; then
31 elif [ "X${UNAME}" = "XOpenBSD" ]; then
40 # If file is set and execute flag is set
41 if [ ! "X$FILE" = "X" ]; then
42 if [ "X$EXECUTE" = "Xexecute" ]; then
43 cp -pr ../active-response/firewall-drop.sh ../active-response/firewalls/default-firewall-drop.sh
44 cp -pr ../active-response/firewalls/$FILE ../active-response/firewall-drop.sh