Skip to content

Instantly share code, notes, and snippets.

@windsting
Last active September 22, 2019 19:37
Show Gist options
  • Save windsting/339c778c4f36a64dc1e500dd8027d5b4 to your computer and use it in GitHub Desktop.
Save windsting/339c778c4f36a64dc1e500dd8027d5b4 to your computer and use it in GitHub Desktop.
Shadowsocksr & V2ray

Anti-GFW

All these command tested on Ubuntu 18.04.

BBR

# add config
sudo echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
sudo echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

# enable new added config
sudo sysctl -p

# validate it was enabled
sysctl net.ipv4.tcp_available_congestion_control

# if enabled, gonna output this:
net.ipv4.tcp_available_congestion_control = bbr cubic reno

# validate bbr started
lsmod | grep bbr
tcp_bbr                20480  14
# if started gonna output this:

Shadowsocksr

install and setup server:

# fetch repository
git clone -b manyuser https://github.com/windsting/shadowsocksr.git
cd shadowsocksr

# init config
bash initcfg.sh

# edit config file
vi user-config.json

# start service
./shadowsocks/server.py -c user-config.json

V2ray

install and setup server:

wget https://install.direct/go.sh
bash go.sh 

## check config file
cat /etc/v2ray/config.json

## 启动
systemctl start v2ray

## 停止
systemctl stop v2ray

## 重启
systemctl restart v2ray

## 开机自启
systemctl enable v2ray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment