之前內網轉發的時候用過ss,在服務器上裝個showdowsocks,再將這個ss端口轉發到外網,不過現在已經不需要這么麻煩了。

那時候用的是windows版,比較不穩定,后來隨便看了下linux 版的安裝,看著麻煩也就沒弄了,今天偶然在折騰python 使用vpn的時候,看到了一個快速配置shadowsocks的方法,簡單又穩定,特來備忘一下。

# 安裝
 yum install python-setuptools -y && easy_install pip
 pip install shadowsocks
 # 啟停:
 ssserver -p 8000 -k yourpassword ?-d start
 ssserver -d stop

基本就三條命令啟動shadowssocks,用自己的硅谷服務器測試了下速度相當可以,穩定性也還不錯,適合做一些不可描述的事情

 

shadowsocks其他參數

usage: ssserver [OPTION]…
A fast tunnel proxy that helps you bypass firewalls.

You can supply configurations via either config file or command line arguments.

Proxy options:
-c CONFIG path to config file
-s SERVER_ADDR server address, default: 0.0.0.0
-p SERVER_PORT server port, default: 8388
-k PASSWORD password
-m METHOD encryption method, default: aes-256-cfb(注意這里的默認加密)
-t TIMEOUT timeout in seconds, default: 300
–fast-open use TCP_FASTOPEN, requires Linux 3.7+
–workers WORKERS number of workers, available on Unix/Linux
–forbidden-ip IPLIST comma seperated IP list forbidden to connect
–manager-address ADDR optional server manager UDP address, see wiki

General options:
-h, –help show this help message and exit
-d start/stop/restart daemon mode
–pid-file PID_FILE pid file for daemon mode
–log-file LOG_FILE log file for daemon mode
–user USER username to run as
-v, -vv verbose mode
-q, -qq quiet mode, only show warnings/errors
–version show version information

Online help: <https://github.com/shadowsocks/shadowsocks>

 

您的支持將鼓勵我們繼續創作!

[微信] 掃描二維碼打賞

[支付寶] 掃描二維碼打賞