This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
securite_kernel [2024/02/11 10:36] 47.128.127.87 old revision restored (2024/01/24 11:53) |
securite_kernel [2024/04/01 20:12] 114.119.157.178 old revision restored (2024/02/23 22:06) |
||
---|---|---|---|
Line 3: | Line 3: | ||
Options kernels à utiliser pour restreindre des comportements de routage, ICMP... inutiles à proposer. | Options kernels à utiliser pour restreindre des comportements de routage, ICMP... inutiles à proposer. | ||
- | Backuper le fichier original mais ne pas le modifier. | ||
< | < | ||
cp -p sysctl.conf sysctl.conf.orig | cp -p sysctl.conf sysctl.conf.orig | ||
Line 11: | Line 10: | ||
< | < | ||
- | vi /etc/sysctl.d/custom.conf | + | vi / |
</ | </ | ||
Line 18: | Line 17: | ||
net.ipv4.conf.all.rp_filter = 1 | net.ipv4.conf.all.rp_filter = 1 | ||
net.ipv4.tcp_syncookies = 1 | net.ipv4.tcp_syncookies = 1 | ||
- | net.ipv4.ip_forward = 1 #Inclus la ligne suivante : net.ipv4.conf.docker0.forwarding = 1 | + | net.ipv4.ip_forward = 0 #Inclus la ligne suivante : net.ipv4.conf.docker0.forwarding = 0 |
net.ipv6.conf.all.forwarding=0 | net.ipv6.conf.all.forwarding=0 | ||
net.ipv4.conf.all.accept_redirects = 0 | net.ipv4.conf.all.accept_redirects = 0 |