From 6bee859a12623d0b04d3672fade41b8b181bdb19 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Sun, 2 Dec 2001 06:03:03 +0000 Subject: added sysctl.conf, host.conf and /etc/issue{.net} customization. --- init-sh/level1.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'init-sh/level1.sh') diff --git a/init-sh/level1.sh b/init-sh/level1.sh index c8b20a5..a40a22e 100755 --- a/init-sh/level1.sh +++ b/init-sh/level1.sh @@ -78,6 +78,21 @@ echo "Adding system users to specific groups :" grpconv echo -e "done.\n" +# icmp echo +echo "Enabling icmp echo :" +AddRules "net.ipv4.icmp_echo_ignore_all=0" /etc/sysctl.conf +AddRules "net.ipv4.icmp_echo_ignore_broadcasts=0" /etc/sysctl.conf + +# bad error +echo "Disabling bad error message Protection :" +AddRules "net.ipv4.icmp_ignore_bogus_error_responses=0" /etc/sysctl.conf + +# log strange packets +echo "Disabling logging Spoofed Packets, Source Routed Packets, Redirect Packets :" +AddRules "net.ipv4.conf.all.log_martians=0" /etc/sysctl.conf + +LoadSysctl + AllowAutologin # Do not boot on a shell -- cgit v1.2.1