summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-05-06 17:18:19 +0000
committerache <ache@FreeBSD.org>2000-05-06 17:18:19 +0000
commit4a110a737fc15fae4519d5b86df549c0d0eaeca8 (patch)
tree9297b1ead3510874f9ad817070a9d77d315a743f /etc/rc.network
parentdc25977c3ba7edfbef0e01b51bc5920cb8be8e8d (diff)
downloadFreeBSD-src-4a110a737fc15fae4519d5b86df549c0d0eaeca8.zip
FreeBSD-src-4a110a737fc15fae4519d5b86df549c0d0eaeca8.tar.gz
Add firewall_logging knob to enable/disablle events logging, disabled
by default. Needed mainly for ipfw kernel module to enable logging disabled there.
Diffstat (limited to 'etc/rc.network')
-rw-r--r--etc/rc.network10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/rc.network b/etc/rc.network
index dd60e89..a03e000 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -223,6 +223,16 @@ network_pass1() {
echo "but firewall rules are not enabled."
echo " All ip services are disabled."
fi
+
+ case ${firewall_logging} in
+ [Yy][Ee][Ss] | '')
+ echo 'Firewall logging=YES'
+ sysctl -w net.inet.ip.fw.verbose=1 >/dev/null
+ ;;
+ *)
+ ;;
+ esac
+
;;
esac
;;
OpenPOWER on IntegriCloud