This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
securite_kernel [2025/06/16 13:23] 57.141.2.16 old revision restored (2025/06/03 15:10) |
securite_kernel [2025/12/13 04:10] (current) 43.173.177.91 old revision restored (2025/11/10 20:17) |
||
|---|---|---|---|
| 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 | ||