File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ echo "0" > /proc/sys/net/ipv4/conf/default/secure_redirects
61
61
echo " 1" > /proc/sys/net/ipv4/conf/all/log_martians
62
62
# Protect from ICMP attacks
63
63
echo " 1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
64
+
65
+ echo " 1" > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
64
66
# Enable RFC-recommended source validation (should not be used on machines which are routers for very complicated networks)
65
67
echo " 1" > /proc/sys/net/ipv4/conf/all/rp_filter
66
68
echo " 1" > /proc/sys/net/ipv4/conf/default/rp_filter
@@ -83,3 +85,5 @@ echo "20" > /proc/sys/vm/dirty_background_ratio
83
85
#
84
86
echo " 25" > /proc/sys/vm/dirty_ratio
85
87
88
+
89
+ echo " 0" > /proc/sys/net/ipv4/conf/all/rp_filter
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- kernel_tuning () {
3
2
echo '
4
3
# Syncookies make SYN flood attacks ineffective
5
4
net.ipv4.tcp_syncookies = 1
@@ -69,6 +68,4 @@ root hard nofile 256000
69
68
grep " session required pam_limits.so" /etc/pam.d/common-session > /dev/null || {
70
69
echo ' session required pam_limits.so' >> /etc/pam.d/common-session
71
70
}
72
- }
73
71
74
- kernel_tuning;
You can’t perform that action at this time.
0 commit comments