🔒 Closed ✡✡Shadowsocks+Google BBR(droplet)✡✡

Status
Not open for further replies.

iamjefjef23

Forum Guru
Okay diba installed na ang shadowsocks sa droplet mo eto ang iaapply naten para bumilis pa

Google BBR is a TCP congestion control algorithm that can give a huge speed boost on networks with high packet loss (basically all of the networks in/out of China).

To confirm whether Google BBR is already installed, enter the following command.

lsmod | grep bbr

If you see a text output from this command with the words "tcp_bbr" and a number beside it, then you already have BBR. You can skip the next command.

If you are using an older version of Ubuntu or don't have BBR installed, then install it using the command below (another great script from Teddy Sun).

wget --no-check-certificate You do not have permission to view the full content of this post. Log in or register now. && chmod +x bbr.sh && ./bbr.sh

If you have an incompatible kernel, you will be asked to reboot your server after the kernel is changed. You will need to re-connect using Putty after rebooting.

You can confirm that the installation was successful by using the "lsmod | grep bbr" command again.

Now that bbr is installed, we just have a few more settings to optimize.

Next, change the kernel configuration settings.

nano /etc/sysctl.conf

Add the following lines at the bottom of the file after the net.ipv4.tcp_congestion_control = bbr line.
fs.file-max = 51200
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.core.netdev_max_backlog = 250000
net.core.somaxconn = 4096
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
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_fastopen = 3
net.ipv4.tcp_mem = 25600 51200 102400
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.ipv4.tcp_mtu_probing = 1

Press Ctrl + X to exit and then press Y to save the file, and press enter to keep the same file name.

Apply the new settings by entering the command below.

sysctl -p

Let's make a few more optimisations.

nano /etc/security/limits.conf

Add these lines to the bottom of the file, include the * symbol.
* soft nofile 51200
* hard nofile 51200

Press Ctrl + X to exit and then press Y to save the file, and press enter to keep the same file name.

Next, enter this command.

nano /etc/pam.d/common-session

Add the following line at the end of the file.
session required pam_limits.so

Press Ctrl + X to exit and then press Y to save the file, and press enter to keep the same file name.

nano /etc/profile

Add the following line at the end of the file.

ulimit -n 51200
Finally, type the command below.

ulimit -n 51200

Restart the shadowsocks server again.

/etc/init.d/shadowsocks restart

The optimizations are finished!

then try nyo uli ang inyong shadowsocks

feedback later
credits sa tipsforchina.com
 
Status
Not open for further replies.

About this Thread

  • 5
    Replies
  • 1K
    Views
  • 4
    Participants
Last reply from:
Cartridge

Trending Topics

Online now

Members online
855
Guests online
2,688
Total visitors
3,543

Forum statistics

Threads
2,276,109
Posts
28,967,662
Members
1,231,121
Latest member
hgfnbvcc
Back
Top