学习上网冲浪正确姿势(二)

Shadow ☆ Socks

shadow ☆ Socks原理

Shadow ☆ socks 是一种基于 socks5 的代理服务,可以帮助方便的网络服务。在已配置完服务端的情况下,其本地安装过程十分简单。用户只需要下载 Shado☆wsocks 客户端,扫描二维码或输入服务器信息,即可开始浏览你想浏览的内容了。

特点

  • 省电,在电量查看里几乎看不到它的身影
  • 支持开机自启动,且断网无影响,无需手动重连,方便网络不稳定或者3G&Wi-Fi频繁切换的小伙伴
  • 可使用自己的服务器,安全和速度的保证
  • 支持区分国内外流量
  • 可对应用设置单独代理,5.0之后的系统无需root

系统

选择Unbuntu 18.04,原因是大家都用这个,怕翻车也用这系统

安装Python

为安装pip做准备,对python有版本要求
Python 2.7.9 + 或 Python 3.4+

sudo apt-get install python3

安装pip3

sudo apt-get install python3-pip
sudo apt-get install python3-setuptools

安装SS

pip3 install https://github.com/*/*/archive/master.zip

验证SS

看看有没有失败就行

ssserver --version

运行SS

sudo ssserver -p 2233 -k 123456 -m aes-256-cfb -d start
常用参数 : -p 端口 -k 密码 -m 加密方式 -d 后台启动
还可以通过配置文件启动,各自探索

运行参数:

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
Sodium:
chacha20-poly1305, chacha20-ietf-poly1305,
xchacha20-ietf-poly1305,
sodium:aes-256-gcm,
salsa20, chacha20, chacha20-ietf.
Sodium 1.0.12:
xchacha20
OpenSSL:
aes-{128|192|256}-gcm, aes-{128|192|256}-cfb,
aes-{128|192|256}-ofb, aes-{128|192|256}-ctr,
camellia-{128|192|256}-cfb,
bf-cfb, cast5-cfb, des-cfb, idea-cfb,
rc2-cfb, seed-cfb,
rc4, rc4-md5, table.
OpenSSL 1.1:
aes-{128|192|256}-ocb
mbedTLS:
mbedtls:aes-{128|192|256}-cfb128,
mbedtls:aes-{128|192|256}-ctr,
mbedtls:camellia-{128|192|256}-cfb128,
mbedtls:aes-{128|192|256}-gcm
-t TIMEOUT timeout in seconds, default: 300
-a ONE_TIME_AUTH one time auth
–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
–prefer-ipv6 resolve ipv6 address first
–libopenssl=PATH custom openssl crypto lib path
–libmbedtls=PATH custom mbedtls crypto lib path
–libsodium=PATH custom sodium crypto lib path

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

上一篇:Math Problem(数论+二分+前缀和)


下一篇:快速入门Docker(2)——常用命令(建议收藏)