Last active
November 15, 2022 05:33
-
-
Save gilangvperdana/ca5b6192a4329d6f38e0ca6ed10e0012 to your computer and use it in GitHub Desktop.
TCP/UDP Tweak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net.ipv4.ip_nonlocal_bind=1 | |
net.ipv6.ip_nonlocal_bind=1 | |
net.bridge.bridge-nf-call-iptables=1 | |
net.bridge.bridge-nf-call-ip6tables=1 | |
net.ipv4.neigh.default.gc_thresh1=128 | |
net.ipv4.neigh.default.gc_thresh2=28672 | |
net.ipv4.neigh.default.gc_thresh3=32768 | |
net.ipv6.neigh.default.gc_thresh1=128 | |
net.ipv6.neigh.default.gc_thresh2=28672 | |
net.ipv6.neigh.default.gc_thresh3=32768 | |
fs.inotify.max_user_watches = 524288 | |
net.ipv4.ip_local_port_range = 1024 65535 | |
net.core.rmem_max=26214400 | |
net.core.rmem_default=26214400 | |
net.core.default_qdisc=fq | |
net.ipv4.tcp_congestion_control=bbr | |
fs.file-max = 2097152 | |
net.core.wmem_default = 31457280 | |
net.core.wmem_max = 12582912 | |
net.core.somaxconn = 65535 | |
net.core.netdev_max_backlog = 65536 | |
net.core.optmem_max = 25165824 | |
net.ipv4.tcp_mem = 65536 131072 262144 | |
net.ipv4.udp_mem = 65536 131072 262144 | |
net.ipv4.tcp_rmem = 8192 87380 16777216 | |
net.ipv4.udp_rmem_min = 16384 | |
net.ipv4.tcp_wmem = 8192 65536 16777216 | |
net.ipv4.udp_wmem_min = 16384 | |
net.ipv4.tcp_mtu_probing=1 | |
net.ipv4.tcp_syncookies = 1 | |
net.ipv4.tcp_window_scaling = 1 | |
net.ipv4.tcp_no_metrics_save = 1 | |
net.ipv4.route.flush = 1 | |
net.core.dev_weight = 64 | |
net.ipv4.ipfrag_low_thresh = 446464 | |
net.ipv4.neigh.default.proxy_qlen = 96 | |
net.ipv4.neigh.default.unres_qlen = 6 | |
net.unix.max_dgram_qlen = 50 | |
net.ipv4.tcp_moderate_rcvbuf = 1 | |
net.ipv4.tcp_low_latency = 1 | |
kernel.msgmnb = 131072 | |
kernel.msgmax = 131072 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment