之前内网转发的时候用过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>