输入以下内容,你的Shadowsocks服务器信息:
{ "server": "********", "server_port": ****, "password": "******", "method": "aes-256-cfb", "remarks": "", "auth": false, "timeout": 5 }
使用 :以下命令启动服务
sudo sslocal -c /etc/shadowsocks.json &
下面开始配置privoxy做全局代理
sudo vi /etc/privoxy/config
输入/进行查找:
listen-address 127.0.0.1:8118(783行左右)
去掉注释,保证端口8118不与系统变量冲突即可,可自由设定。
查找:
forward-socks5t / 127.0.0.1:1080 .
去掉注释,要求和ss端口号相同,注意最后一位英文句号不可丢!
保存并退出即可。
执行:
sudo privoxy /etc/privoxy/config
无报错则正确启动。
Shell下使用http代理需执行:
export http_proxy=http://127.0.0.1:8118 export ftp_proxy=http://127.0.0.1:8118
运行w3m www.google.com可访问则说明代理已配置成功。
Fedora & RHEL
Supported distributions:
- Recent Fedora versions (until EOL)
- RHEL 6, 7 and derivatives (including CentOS, Scientific Linux)
Build from source with centos
If you are using CentOS 7, you need to install these prerequirements to build from source code:
yum install epel-release -y
yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto c-ares-devel libev-devel libsodium-devel mbedtls-devel -y
文章评论