30 lines
613 B
Plaintext
30 lines
613 B
Plaintext
|
# IPV4
|
||
|
net.ipv4.icmp_echo_ignore_broadcasts = 1
|
||
|
|
||
|
net.ipv4.conf.all.log_martians = 1
|
||
|
net.ipv4.conf.all.rp_filter = 1
|
||
|
net.ipv4.conf.default.rp_filter = 1
|
||
|
|
||
|
# TCP Tweaks
|
||
|
net.ipv4.tcp_ecn = 1
|
||
|
net.ipv4.tcp_tw_reuse = 1
|
||
|
net.ipv4.tcp_mtu_probing = 1
|
||
|
net.ipv4.tcp_slow_start_after_idle = 1
|
||
|
|
||
|
net.ipv4.tcp_syncookies = 1
|
||
|
net.ipv4.tcp_synack_retries = 5
|
||
|
|
||
|
net.ipv4.tcp_keepalive_time = 60
|
||
|
net.ipv4.tcp_keepalive_intvl = 10
|
||
|
net.ipv4.tcp_keepalive_probes = 6
|
||
|
|
||
|
net.ipv4.tcp_rfc1337 = 1
|
||
|
|
||
|
# UDP Tweaks
|
||
|
net.ipv4.udp_rmem_min = 8192
|
||
|
net.ipv4.udp_wmem_min = 8192
|
||
|
|
||
|
# Misc
|
||
|
net.core.netdev_max_backlog = 16384
|
||
|
net.core.somaxconn = 8192
|