Shadowsocks for Linux 下载安装翻墙教程

海外翻墙免费加速器[入口]

Clash/Shadowsock相关文章:

Clash翻墙 Shadowsocks翻墙
Clash for Windows Shadowsocks for Windows
Clash for Android  Shadowsocks for Android
Clash for Mac/IOS Shadowsocks for MAC/IOS
Clash for Linux Shadowsocks for Linux

Shadowsocks for Linux订阅节点

海外翻墙免费加速器[入口]

安装 Shadowsocks-Qt5

按照下面的说明在 Ubuntu 上下载并安装 Shadowsocks-Qt5。

1、下载客户端:https://share.weiyun.com/p7JSsCMD

2. 安装客户端

右键单击 “Shadowsocks-Qt5-x.x.x-x86_64.AppImage” > 选择 “Properties” > 单击 “Permissions” > 在”Allow excuting file as program” 上打勾。

下载客户端

Shadowsocks for Linux配置

在您的电脑上, 执行下列操作:

  • 双击Shadowsocks-Qt5-x.x.x-x86_64.AppImage > “Connection” > “Add” > “Manually”。

Ubuntu 手动设置

  • 填写 “Server Address” (为你的节点服务器地址)> 填写”Server Port”(为你的服务端口) > 填写 “Password” (为你的登陆密码)。
  • 在 “Local Address” 处填上 “127.0.0.1” > 在 “local Port” 处填上 “1080” > 选择 “Encryption Method” (为你的加密方式)。

勾选 “Auto connect to connect on application start”, 将会在开启 Shadowsocks-QT5 时自动连接至该服务器。

服务器设置

您也可以通过二维码方式单独增加节点,在您的计算机上, 执行下列操作:

此二维码同样适用于其他客户端。

  • 双击Shadowsocks-Qt5-x.x.x-x86_64.AppImage > “Connection” > “Add” > “Scan QR code on Screen” > 当弹出新的 “Profile Editor”后,点击 “OK”。
  • 点击 “Connect” 图标 。

Shadowsocks for Linux命令行客户端

1. 安装:

Python : https://github.com/shadowsocks/shadowsocks/tree/master#install

Shadowsocks-libev: https://github.com/shadowsocks/shadowsocks-libev#installation

下面我们以 Python 版的 Shadowsocks 为例

安装命令:Debian / Ubuntu:

apt-get install python-pip
pip install git+https://github.com/shadowsocks/shadowsocks.git@master

CentOS:

yum install python-setuptools && easy_install pip
pip install git+https://github.com/shadowsocks/shadowsocks.git@master

For CentOS 7, if you need AEAD ciphers, you need install libsodium

dnf install libsodium python34-pip
pip3 install  git+https://github.com/shadowsocks/shadowsocks.git@master

Linux distributions with snap:

snap install shadowsocks

2. 创建 Shadowsocks 配置文件

创建一个 /etc/shadowsocks.json 文件,格式如下

{
    "server":"服务器 IP 或是域名",
    "server_port":端口号,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"密码",
    "timeout":300,
    "method":"加密方式 (chacha20-ietf-poly1305 / aes-256-cfb)",
    "fast_open": false
}

3、启动 Shadowsocks

Python 版客户端命令是 sslocal , Shadowsocks-libev 客户端命令为 ss-local

/usr/local/bin/sslocal -c /etc/shadowsocks.json -d start

4、终端内使用,需安裝 proxychains

Debian / Ubuntu:

sudo apt-get install proxychains

编辑 /etc/proxychains.conf

修改最后一行

socks5 127.0.0.1 1080

接着我们就可以直接 用 proxychains + 命令的方式使用代理,例如

proxychains curl xxxx
proxychains wget xxxx

sudo proxychains apt-get xxxx

5、其他程序使用

需要在程序内设置一个协议为 socks v5 的代理

服务器:127.0.0.1
端口:1080 #应与Shadowsocks客户端的本地端口对应,默认为1080

6、 关闭 Shadowsocks

在终端内输入

lsof –i:1080

kill 相应的 pid 即可

未经允许不得转载:陈海飞博客 » Shadowsocks for Linux 下载安装翻墙教程

分享到:更多 ()

海外翻墙免费加速器[入口]