41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
net.core.somaxconn=65536
|
|
net.core.netdev_max_backlog=65535
|
|
|
|
net.ipv4.conf.default.rp_filter=1
|
|
net.ipv4.conf.all.rp_filter=1
|
|
|
|
net.ipv4.tcp_syncookies=1
|
|
net.ipv4.tcp_notsent_lowat = 131072
|
|
net.ipv4.tcp_rfc1337 = 1
|
|
net.ipv4.tcp_fin_timeout = 20
|
|
net.ipv4.tcp_keepalive_time = 240
|
|
net.ipv4.tcp_slow_start_after_idle = 0
|
|
net.ipv4.tcp_retries2 = 8
|
|
net.ipv4.tcp_tw_reuse = 1
|
|
net.ipv4.tcp_low_latency = 1
|
|
net.ipv4.ip_local_port_range = 10000 65000
|
|
fs.file-max = 8388608
|
|
net.core.default_qdisc=fq
|
|
net.ipv4.tcp_congestion_control=bbr
|
|
|
|
#Hardening
|
|
dev.tty.ldisc_autoload = 0
|
|
fs.protected_fifos = 2
|
|
kernel.core_uses_pid = 1
|
|
kernel.kptr_restrict = 2
|
|
kernel.sysrq = 0
|
|
kernel.unprivileged_bpf_disabled =1
|
|
kernel.yama.ptrace_scope = 1
|
|
net.core.bpf_jit_harden = 2
|
|
net.ipv4.conf.all.accept_redirects = 0
|
|
net.ipv4.conf.all.log_martians = 1
|
|
net.ipv4.conf.all.send_redirects = 0
|
|
net.ipv4.conf.default.accept_redirects = 0
|
|
net.ipv4.conf.default.accept_source_route = 0
|
|
net.ipv4.conf.default.log_martians = 1
|
|
net.ipv6.conf.all.accept_redirects = 0
|
|
net.ipv6.conf.default.accept_redirects = 0
|
|
|
|
#unsafe harden
|
|
#kernel.modules_disabled = 1
|