grey hat die Gist bearbeitet . Zu Änderung gehen
1 file changed, 28 insertions
tcp.sh(Datei erstellt)
| @@ -0,0 +1,28 @@ | |||
| 1 | + | cat > /etc/sysctl.conf << EOF | |
| 2 | + | fs.file-max = 6815744 | |
| 3 | + | net.ipv4.tcp_no_metrics_save=1 | |
| 4 | + | net.ipv4.tcp_ecn=0 | |
| 5 | + | net.ipv4.tcp_frto=0 | |
| 6 | + | net.ipv4.tcp_mtu_probing=0 | |
| 7 | + | net.ipv4.tcp_rfc1337=0 | |
| 8 | + | net.ipv4.tcp_sack=1 | |
| 9 | + | net.ipv4.tcp_fack=1 | |
| 10 | + | net.ipv4.tcp_window_scaling=1 | |
| 11 | + | net.ipv4.tcp_adv_win_scale=1 | |
| 12 | + | net.ipv4.tcp_moderate_rcvbuf=1 | |
| 13 | + | net.core.rmem_max=16777216 | |
| 14 | + | net.core.wmem_max=16777216 | |
| 15 | + | net.ipv4.tcp_rmem=4096 87380 16777216 | |
| 16 | + | net.ipv4.tcp_wmem=4096 65536 16777216 | |
| 17 | + | net.ipv4.udp_rmem_min=8192 | |
| 18 | + | net.ipv4.udp_wmem_min=8192 | |
| 19 | + | net.ipv4.ip_forward=1 | |
| 20 | + | net.ipv4.conf.all.route_localnet=1 | |
| 21 | + | net.ipv4.conf.all.forwarding=1 | |
| 22 | + | net.ipv4.conf.default.forwarding=1 | |
| 23 | + | net.core.default_qdisc=fq | |
| 24 | + | net.ipv4.tcp_congestion_control=bbr | |
| 25 | + | net.ipv6.conf.all.forwarding=1 | |
| 26 | + | net.ipv6.conf.default.forwarding=1 | |
| 27 | + | EOF | |
| 28 | + | sysctl -p && sysctl --system | |
Neuer
Älter