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}" = "XDarwin" ]; then
38 elif [ "X${UNAME}" = "XOpenBSD" ]; then
47 # If file is set and execute flag is set
48 if [ ! "X$FILE" = "X" ]; then
49 if [ "X$EXECUTE" = "Xexecute" ]; then
50 cp -pr ../active-response/firewall-drop.sh ../active-response/firewalls/default-firewall-drop.sh
51 cp -pr ../active-response/firewalls/$FILE ../active-response/firewall-drop.sh