Created
July 18, 2019 03:03
-
-
Save wlchn/95e624fc50426ee701bc5d50bf4b5416 to your computer and use it in GitHub Desktop.
Vultr Ubuntu 18.04 Startup Scripts Deploy Google BBR and Shadowsocks
This file contains hidden or 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
#!/bin/sh | |
apt-get update -y | |
apt -y install shadowsocks-libev | |
echo -n > /etc/shadowsocks-libev/config.json | |
echo "{" >> /etc/shadowsocks-libev/config.json | |
echo "\"server\":\"$(hostname -I)\"," >> /etc/shadowsocks-libev/config.json | |
echo "\"server_port\":8443," >> /etc/shadowsocks-libev/config.json | |
echo "\"local_port\":1080," >> /etc/shadowsocks-libev/config.json | |
echo "\"password\":\"YourPassword\"," >> /etc/shadowsocks-libev/config.json | |
echo "\"timeout\":60," >> /etc/shadowsocks-libev/config.json | |
echo "\"method\":\"aes-256-cfb\"" >> /etc/shadowsocks-libev/config.json | |
echo "}" >> /etc/shadowsocks-libev/config.json | |
cat /etc/shadowsocks-libev/config.json | |
/etc/init.d/shadowsocks-libev start | |
/etc/init.d/shadowsocks-libev stop | |
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf | |
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf | |
sysctl -p | |
sysctl net.ipv4.tcp_available_congestion_control | |
lsmod | grep bbr | |
/etc/init.d/shadowsocks-libev start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment