Skip to content

Instantly share code, notes, and snippets.

@hsupu
Created June 7, 2020 04:03
Show Gist options
  • Save hsupu/daf3cce79f633ed6b50b6e7faec6c3e4 to your computer and use it in GitHub Desktop.
Save hsupu/daf3cce79f633ed6b50b6e7faec6c3e4 to your computer and use it in GitHub Desktop.
For Proxy/Forward Server.
# BBR
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
fs.file-max = 1000000
fs.inotify.max_user_instances = 8192
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_tw_reuse = 1
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_max_syn_backlog = 16384
net.ipv4.tcp_max_tw_buckets = 6000
net.ipv4.route.gc_timeout = 100
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_synack_retries = 1
net.core.somaxconn = 32768
net.core.netdev_max_backlog = 32768
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_max_orphans = 32768
# forward
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
@hsupu
Copy link
Author

hsupu commented Jun 7, 2020

$ cat /etc/security/limits.conf
* soft nofile 1000000
* hard nofile 1000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment