# Reduce timeout for stale connections net.ipv4.tcp_fin_timeout = 10 # Reduce keep alive time net.ipv4.tcp_keepalive_time = 300 net.ipv4.tcp_keepalive_probes = 5 net.ipv4.tcp_keepalive_intvl = 60 # Reduce connection time to fail net.ipv4.tcp_syn_retries = 1 net.ipv4.tcp_synack_retries = 1 # Prevent simple DoS attacks net.ipv4.tcp_max_tw_buckets = 1048576 # Disable ICMP redirects 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 net.ipv4.conf.all.send_redirects = 0 net.ipv4.conf.default.send_redirects = 0