购买搬瓦工之后的操作(二)

shadowsocksR服务端配置

shadowsocksR是shadowsocks的增强版,shadowsocks和shadowsocksR原项目都已经被删除了,可以使用民间版,地址:

使用Google Cloud Platform(GCP GCE)安装SSR+BBR教程

配置google BBR

BBR 拥塞控制算法:了解更多

$ root@instance-1:/home/ubuntu# sudo su
$ root@instance-1:/home/ubuntu# wget --no-check-certificate 
$ https://github.com/teddysun/across/raw/master/bbr.sh
$ root@instance-1:/home/ubuntu# chmod +x bbr.sh
$ root@instance-1:/home/ubuntu# ./bbr.sh

检查安装结果:

$ root@instance-1:/home/ubuntu# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno
类似含有bbr字样即成功

配置shadowsocksR

  • 使用一键脚本安装,一路回车使用默认配置安装
$ root@instance-1:/home/ubuntu# wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/shadowsocks_install/master/shadowsocksR.sh && bash shadowsocksR.sh
  • 检查安装
$ root@instance-1:/home/ubuntu# ps -aux | grep "shadowsocks"
root     24191     1  0 11:57 ?        00:00:01 python /usr/local/shadowsocks/shadowsocks/server.py -c /etc/shadowsocks.json -d start
root     24605  2004  0 12:48 pts/1    00:00:00 grep --color=auto shadowsocks
  • 修改配置文件,根据自己需求修改配置文件,主要检查防火墙是否开放了设置的端口。
$ root@instance-1:/home/ubuntu# vi /etc/shadowsocks.json

{
    "server": "0.0.0.0",
    "server_ipv6": "::",
    "server_port": 443,
    "local_address": "127.0.0.1",
    "local_port": 1081,
    "password": "12345678",
    "timeout": 120,
    "udp_timeout": 60,
    "method": "chacha20",
    "protocol": "auth_sha1_v4_compatible",
    "protocol_param": "",
    "obfs": "tls1.2_ticket_auth_compatible",
    "obfs_param": "",
    "dns_ipv6": false,
    "connect_verbose_info": 1,
    "redirect": "",
    "fast_open": false,
    "workers": 1

}
  • 重启服务
$ root@instance-1:/home/ubuntu# /etc/init.d/shadowsocks restart
  • 配置客户端访问谷歌验证代理(如遇报错再次重启)
$ root@instance-1:/home/ubuntu# /etc/init.d/shadowsocks restart

Shylin

猜你喜欢

转载自blog.csdn.net/shyllin/article/details/79808686
今日推荐