aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level0.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh/level0.sh')
-rwxr-xr-xinit-sh/level0.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/init-sh/level0.sh b/init-sh/level0.sh
index 927b6eb..b893546 100755
--- a/init-sh/level0.sh
+++ b/init-sh/level0.sh
@@ -77,6 +77,21 @@ echo "Adding system users to specific groups :"
/usr/share/msec/grpuser.sh --refresh
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
# Boot on a shell / authorize ctrl-alt-del