Skip to content

Instantly share code, notes, and snippets.

@oakaigh
Created January 21, 2019 15:38
Show Gist options
  • Save oakaigh/75e77d2f3c7dbe30ba6596ea2e75f18a to your computer and use it in GitHub Desktop.
Save oakaigh/75e77d2f3c7dbe30ba6596ea2e75f18a to your computer and use it in GitHub Desktop.
#
# Aghostd Universal
# ElitetNode Server QuarProxy Service
# - Optimized Configuration
#
# (c) Elitet Inc. 2018-2019
# Jared Hillier, Lindsay J. Gibson
#
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
#
# IP version
net.ipv4.ip_forward = 0
net.ipv4.tcp_synack_retries = 1
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.tcp_max_tw_buckets = 50000
net.ipv4.tcp_max_syn_backlog = 10240
# TCP/IP
net.ipv4.tcp_syncookies = 0
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_low_latency = 1
net.ipv4.tcp_keepalive_time = 86400
net.ipv4.tcp_keepalive_intvl = 1
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_mem = 256000 512000 1024000
net.ipv4.tcp_rmem = 40960 873800 671088640
net.ipv4.tcp_wmem = 40960 655360 671088640
net.ipv4.tcp_mtu_probing = 1
net.ipv4.udp_rmem_min = 671088640
net.ipv4.udp_wmem_min = 671088640
# Google BBR
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
# Additionals
fs.file-max = 65536
net.core.rmem_max = 671088640
net.core.wmem_max = 671088640
net.core.rmem_default = 655360
net.core.wmem_default = 655360
net.core.netdev_max_backlog = 40960
net.core.somaxconn = 40960
net.ipv4.tcp_window_scaling = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_sack = 0
net.ipv4.tcp_fack = 0
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_autocorking = 0
net.ipv4.tcp_invalid_ratelimit = 0
net.ipv4.route.flush = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment