.../..../.-/-../---/.--/.../---/-.-./-.-/...

 

github地址

https://github.com/.../..../.-/-../---/.--/.../---/-.-./-.-/.../.../..../.-/-../---/.--/.../---/-.-./-.-/.../tree/master

支持的加密方式

https://github.com/.../..../.-/-../---/.--/.../---/-.-./-.-/.../.../..../.-/-../---/.--/.../---/-.-./-.-/.../wiki/Encryption

下载后,安装

[root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]# python3
Python 3.6.2 (default, May 22 2018, 23:39:31) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]#
[root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]# python3 setup.py install

启动命令

python3 server.py -c .../..../.-/-../---/.--/.../---/-.-./-.-/....json -d start

启动:service .../..../.-/-../---/.--/.../---/-.-./-.-/... start 
停止:service .../..../.-/-../---/.--/.../---/-.-./-.-/... stop 
重启:service .../..../.-/-../---/.--/.../---/-.-./-.-/... restart 
状态:service .../..../.-/-../---/.--/.../---/-.-./-.-/... status

 

创建命令文件

cp /usr/local/python3/bin/ssserver /bin/ssserver

前台运行

ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json

后台运行

ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json -d start
ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json -d stop

配置文件
cat /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json

{
    "server":"111.11.11.14",
    "server_port":19253,
    "local_address":"127.0.0.1",
    "local_port":28352,
    "password":"6!,!?!.!0",
    "timeout":500,
    "method":"aes-128-cfb",
    "fast_open": true,
    "workers": 1
}

 


 

ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json -d stop
ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json -d start

[root@xxx ~]# cat /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json
{
"server":"111.71.111.111",
"server_port":16653,
"local_address":"127.0.0.1",
"local_port":28352,
"password":"123456",
"timeout":500,
"method":"aes-128-cfb",
"fast_open": true,
"workers": 1
}
[root@xxx ~]#

 

example

[root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]# cat /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json 
{
    "server": "0.0.0.0",
    "server_ipv6": "::",
    "server_port": 13799,
    "local_address": "127.0.0.1",
    "local_port": 1081,
    "password": "204ef7431330c294",
    "timeout": 120,
    "udp_timeout": 60,
    "method": "aes-256-cfb",
    "protocol": "auth_aes128_sha1_compatible",
    "protocol_param": "",
    "obfs": "http_simple_compatible",
    "obfs_param": "",
    "dns_ipv6": false,
    "connect_verbose_info": 1,
    "redirect": "",
    "fast_open": false,
    "workers": 1

}
[root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]#

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2020-12-23 10:23  anobscureretreat  阅读(939)  评论(0编辑  收藏  举报