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 18:11] 47.128.115.152 old revision restored (2024/01/21 22:09) |
securite_kernel [2024/04/05 19:06] 47.128.18.0 old revision restored (2024/03/19 15:23) |
||
---|---|---|---|
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 10: | Line 11: | ||
< | < | ||
- | vi / | + | vi /etc/sysctl.d/custom.conf |
</ | </ | ||
Line 17: | Line 18: | ||
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 = 0 #Inclus la ligne suivante : net.ipv4.conf.docker0.forwarding = 0 | + | net.ipv4.ip_forward = 1 #Inclus la ligne suivante : net.ipv4.conf.docker0.forwarding = 1 |
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 |