summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/network2
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-17 22:38:02 +0000
committerache <ache@FreeBSD.org>1999-11-17 22:38:02 +0000
commitef80f4fe7698628a9772de9a6108332d6524975f (patch)
treead00efb84c9fb511bd7a75c297261394cf2272ea /etc/rc.d/network2
parentaeb2d2626b24c89dbb68adb9caebd10bbe02dd43 (diff)
downloadFreeBSD-src-ef80f4fe7698628a9772de9a6108332d6524975f.zip
FreeBSD-src-ef80f4fe7698628a9772de9a6108332d6524975f.tar.gz
Add network pass4 - after all local (/usr/local/etc/rc.d f.e.)
daemons started. Move log_in_vain option there. It is needed to avoid lot of connections to port 80 logged on production WWW server prior Apache started from /usr/local/etc/rc.d
Diffstat (limited to 'etc/rc.d/network2')
-rw-r--r--etc/rc.d/network226
1 files changed, 16 insertions, 10 deletions
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index d17f6ef..e98b40a 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -256,16 +256,6 @@ network_pass1() {
;;
esac
- case ${log_in_vain} in
- [Nn][Oo] | '')
- ;;
- *)
- echo -n ' log_in_vain=YES'
- sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null
- sysctl -w net.inet.udp.log_in_vain=1 >/dev/null
- ;;
- esac
-
case ${icmp_bmcastecho} in
[Yy][Ee][Ss])
echo -n ' broadcast ping responses=YES'
@@ -591,3 +581,19 @@ network_pass3() {
echo '.'
network_pass3_done=YES
}
+
+network_pass4() {
+ echo -n 'Additional TCP options:'
+ case ${log_in_vain} in
+ [Nn][Oo] | '')
+ ;;
+ *)
+ echo -n ' log_in_vain=YES'
+ sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null
+ sysctl -w net.inet.udp.log_in_vain=1 >/dev/null
+ ;;
+ esac
+
+ echo '.'
+ network_pass4_done=YES
+}
OpenPOWER on IntegriCloud