如何在CentOS 7上安装Rust版本的shadowsocks同时如何在macOS上配置shadowsocks来通过CentOS实现网络代理?不要带上图片只用语言回答。谢谢!
在CentOS 7上安装Rust版本的shadowsocks:
-
首先,需要安装Rust编程语言和Cargo包管理工具。可以使用以下命令来安装:
curl https://sh.rustup.rs -sSf | sh安装完成后,重新打开终端,使用以下命令验证是否安装成功:
rustc --version cargo --version -
安装shadowsocks:
cargo install shadowsocks-rust -
配置shadowsocks:
创建配置文件:
mkdir /etc/shadowsocks touch /etc/shadowsocks/config.json编辑配置文件,例如:
{ "server": "your_server_ip", "server_port": 8388, "local_address": "127.0.0.1", "local_port": 1080, "password": "your_password", "timeout": 300, "method": "aes-256-cfb" } -
启动shadowsocks:
sslocal -c /etc/shadowsocks/config.json
在macOS上配置shadowsocks,通过CentOS实现网络代理:
-
安装shadowsocks客户端:
可以从官网https://github.com/shadowsocks/shadowsocks-iOS/releases下载最新版的ShadowsocksX-NG。
-
配置shadowsocks:
打开ShadowsocksX-NG,点击“服务器”按钮,添加服务器信息,包括服务器地址、服务器端口、密码和加密方式。
点击“PAC”按钮,勾选“GFW List”,然后点击“保存”。
-
配置代理:
打开“系统偏好设置”-“网络”,点击左下角的“高级”按钮,在“代理”选项卡中勾选“自动代理配置”,在“URL”中输入CentOS服务器上的PAC文件地址,例如:
http://your_server_ip:8080/proxy.pac点击“确定”保存设置。
-
启动代理:
打开ShadowsocksX-NG,点击“启动”按钮,然后在浏览器中访问被墙的网站,就可以通过CentOS服务器实现网络代理了。
原文地址: http://www.cveoy.top/t/topic/KU2 著作权归作者所有。请勿转载和采集!