ALL

Solo para leer y verificar. No puedes copiar, usar, modificar ni redistribuir este código. Aviso completo en la página principal.

tunnel/deploy/sysctl.conf

SHA-256: 98421fc18c49b261dd437921b91c8ad52e72d8f269a527fe38d06896132f496a
11 líneas · 794 bytes · Ver en GitHub

1# Kernel settings for an ALL tunnel node (the design plan, section 5): install as /etc/sysctl.d/99-all-tunnel.conf, then `sysctl --system`.
2#
3# SYN cookies: a flood of half-open connections never fills the accept queue, and a client that completes the handshake still gets served.
4net.ipv4.tcp_syncookies = 1
5# the queues the node's listeners (Go's default backlog follows somaxconn) and the kernel's half-open table can hold
6net.core.somaxconn = 4096
7net.ipv4.tcp_max_syn_backlog = 8192
8# a connection the peer abandoned in FIN-WAIT is let go sooner (the node's own idle limits and TCP keepalive end the rest)
9net.ipv4.tcp_fin_timeout = 20
10# connection tracking must hold what nftables counts: the table is the size of the node's busiest day, with room
11net.netfilter.nf_conntrack_max = 262144