ss使用记录

由于需要查找论文等需要上网,记录使用ss上网学习查资料的配置过程

ubuntu18.04系统
服务器

vultr.com

安装

sudo apt-get  update
sudo apt install python3-pip
//sudo pip3 install https://github.com/ss/ss/archive/master.zip //自己将ss替换成那个ss全称,都懂

新建配置文件

sudo mkdir /etc/ss
sudo vim /etc/ss/ss.json

配置文件内容

{
  "server":"::",
  "local_address":"127.0.0.1",
  "local_port":1080,
  "port_password":{
    "8888":"123123",
    "9999":"123123"
  },
  "timeout":300,
  "method":"aes-256-cfb",
  "fast_open":false
}

server:ss服务器地址 

server_port:ss服务器端口 

local_address:   本地IP

local_port:本地端口 

password:ss连接密码 

timeout:等待超时时间 

method:加密方式 

workers:      工作线程数 

fast_open:     true或false

配置自启动

sudo vim  /etc/systemd/system/ss.service

内容

[Unit]
Description=ss
[Service]
TimeoutStartSec=0
---服务器---
ExecStart=/usr/local/bin/ssserver -c /etc/ss/ss.json
--------------
---客户端---
ExecStart=/usr/local/bin/sslocal -c /etc/ss/ss.json
---------------
[Install]
WantedBy=multi-user.target
sudo systemctl enable ss.service
sudo systemctl start ss.service
sudo systemctl status ss.service

chrom插件 SwitchyOmega

原文地址:https://www.cnblogs.com/vinic-xxm/p/14738880.html