Skip to content

Instantly share code, notes, and snippets.

@TobleMiner
Created February 26, 2020 21:51
Show Gist options
  • Save TobleMiner/3f6738d51a4bdc52ea2b2033d73973e3 to your computer and use it in GitHub Desktop.
Save TobleMiner/3f6738d51a4bdc52ea2b2033d73973e3 to your computer and use it in GitHub Desktop.
conntrack timeout settings for connlimit on busy connections
net.netfilter.nf_conntrack_tcp_timeout_close = 10
net.netfilter.nf_conntrack_tcp_timeout_close_wait = 30
net.netfilter.nf_conntrack_tcp_timeout_established = 432000
net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 30
net.netfilter.nf_conntrack_tcp_timeout_last_ack = 30
net.netfilter.nf_conntrack_tcp_timeout_max_retrans = 30
net.netfilter.nf_conntrack_tcp_timeout_syn_recv = 30
net.netfilter.nf_conntrack_tcp_timeout_syn_sent = 30
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 30
net.netfilter.nf_conntrack_tcp_timeout_unacknowledged = 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment