18 lines
512 B
Plaintext
18 lines
512 B
Plaintext
|
# Do not act as a router
|
||
|
net.ipv4.ip_forward = 0
|
||
|
net.ipv6.conf.all.forwarding = 0
|
||
|
|
||
|
# SYN flood protection
|
||
|
net.ipv4.tcp_syncookies = 1
|
||
|
|
||
|
# Disable ICMP redirect
|
||
|
net.ipv4.conf.all.accept_redirects = 0
|
||
|
net.ipv4.conf.default.accept_redirects = 0
|
||
|
net.ipv4.conf.all.secure_redirects = 0
|
||
|
net.ipv4.conf.default.secure_redirects = 0
|
||
|
net.ipv6.conf.all.accept_redirects = 0
|
||
|
net.ipv6.conf.default.accept_redirects = 0
|
||
|
|
||
|
# Do not send ICMP redirects
|
||
|
net.ipv4.conf.all.send_redirects = 0
|
||
|
net.ipv4.conf.default.send_redirects = 0
|