2024最新最全Linux 使用 Shadowsocks 设置教程

admin3个月前 (07-03)小火箭id94

Shadowosocks-QT5

下面以 Ubuntu 64 位系统做参考,其他系统请参考 安装指南

第一步 安装 Shadowsocks-Qt5

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

1. 下载客户端

【Shadowsocks-Qt5】【历史版本】

2. 安装客户端

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

2024最新最全Linux 使用 Shadowsocks 设置教程

第二步 获取 Shadowsocks 账号信息

详见:SS/ShadowsocksR 服务器节点 点击获取

第三步 配置 Shadowsocks 账号

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

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

2024最新最全Linux 使用 Shadowsocks 设置教程

  • 填写 “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 时自动连接至该服务器。

2024最新最全Linux 使用 Shadowsocks 设置教程

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

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

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

  • 点击 “Connect” 图标 。

2024最新最全Linux 使用 Shadowsocks 设置教程

命令行客户端

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 即可


小火箭作为一款优秀的网络代理工具,具备多协议支持、自定义规则等强大功能,为用户提供了更灵活、安全的上网体验。通过本文的详细介绍,相信用户对小火箭的功能和使用方法有了更全面的了解。在使用过程中,用户应当根据个人需求合理配置代理设置,确保网络连接的稳定和安全。未来,随着技术的不断发展,相信小火箭将会迎来更多的更新和改进,为用户提供更出色的上网体验。更多相关资讯教程,请关注小火箭id平台



分享给朋友:

相关文章

Firefox + Proxy SwitchyOmega 设置Shadowsocks(小火箭)

Firefox + Proxy SwitchyOmega 设置Shadowsocks(小火箭)

本文并不适合任何手机上的 Firefox 浏览器。本文仅适用于 Firefox Quantum (Firefox 57 以上版本)安装扩展首先前往插件商店页面安装 “Proxy SwitchyOmeg...

Clash for Windows 界面组成之代理 Proxies

Clash for Windows 界面组成之代理 Proxies

代理 Proxies代理页面主要的作用就是切换代理模式和切换节点#切换代理模式Clash 共有三种工作模式:全局(Global):所有请求直接发往代理服务器规则(Rule):所有请求根据配置文件规则进...

Clash for Windows 界面组成之代理 Proxies

Clash for Windows 界面组成之代理 Proxies

Profiles 配置TIP深颜色表示当前配置文件已被载入成功远程配置文件指通过 URL 导入的配置文件每个配置文件都包括如下信息:名称类型(远程显示域名,本地显示 local)上次更新时间操作栏操作...

2024最新教程在Android系统使用 Clash教程配置

2024最新教程在Android系统使用 Clash教程配置

在 Android 下使用 Clash在 Android 系统中推荐使用 Clash For Android。Clash 是一个基于 Go 语言开发的跨平台代理程序。 Clash for Androi...

订阅Clash节点显示全部超时/失败/timeout

订阅Clash节点显示全部超时/失败/timeout

如果发现所有的订阅节点全部都超时 timeout,那么极有可能是本地设备的时间同步出现了问题,可以尝试将本地设备的时间和互联网时间进行同步。Windows 下同步互联网时间:在任务栏搜索框输入控制面板...

最新版 Clash for Android 下载

最新版 Clash for Android 下载

最新版 Clash for Android 下载可至 Clash for Android 官网 GitHub 平台下载,也可在本站提供的下载地址来下载最新版 Clash for Android 软件。...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。