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/04/24 13:42] 114.119.151.165 old revision restored (2024/03/06 22:00) |
securite_kernel [2024/05/15 13:10] 3.145.17.230 old revision restored (2024/04/28 22:57) |
||
---|---|---|---|
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 |