diff options
author | ache <ache@FreeBSD.org> | 2000-05-06 17:18:19 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-05-06 17:18:19 +0000 |
commit | 4a110a737fc15fae4519d5b86df549c0d0eaeca8 (patch) | |
tree | 9297b1ead3510874f9ad817070a9d77d315a743f /etc/rc.d | |
parent | dc25977c3ba7edfbef0e01b51bc5920cb8be8e8d (diff) | |
download | FreeBSD-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.d')
-rw-r--r-- | etc/rc.d/netoptions | 10 | ||||
-rw-r--r-- | etc/rc.d/network1 | 10 | ||||
-rw-r--r-- | etc/rc.d/network2 | 10 | ||||
-rw-r--r-- | etc/rc.d/network3 | 10 | ||||
-rw-r--r-- | etc/rc.d/routing | 10 |
5 files changed, 50 insertions, 0 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index dd60e89..a03e000 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -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 ;; diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index dd60e89..a03e000 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -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 ;; diff --git a/etc/rc.d/network2 b/etc/rc.d/network2 index dd60e89..a03e000 100644 --- a/etc/rc.d/network2 +++ b/etc/rc.d/network2 @@ -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 ;; diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 index dd60e89..a03e000 100644 --- a/etc/rc.d/network3 +++ b/etc/rc.d/network3 @@ -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 ;; diff --git a/etc/rc.d/routing b/etc/rc.d/routing index dd60e89..a03e000 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -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 ;; |