1. MagicESP
  2. Ubuntu Server 18.04
  3. TCP Optimizing

TCP Optimizing

sudo {{ texteditor.value }} /etc/sysctl.conf
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_max_tw_buckets = 5000
sudo sysctl -p

listen

netstat -s | grep listen
netstat -s | grep LISTEN
  • https://yq.aliyun.com/articles/522950