服务端操作
方法一
sudo -i wget --no-check-certificate https://github.com/iyuco/scripts/raw/master/bbr.sh chmod +x bbr.sh ./bbr.sh sudo -i wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh && chmod +x shadowsocksR.sh ./shadowsocksR.sh
方法二
sudo -i wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.sh chmod +x shadowsocks-go.sh ./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log
客户端操作
×××
-
创建配置文件
cd /usr/src/ mkdir shadowsocks vim shadow_sock_client.json
-
配置内容
{ "server":"your_server_ip", #ss服务器IP "server_port":your_server_port, #端口 "local_address": "127.0.0.1", #本地ip "local_port":1080, #本地端口 "password":"your_server_passwd",#连接ss密码 "timeout":300, #等待超时 "method":"rc4-md5", #加密方式 "fast_open": false, # true 或 false "workers": 1 # 工作线程数 }
-
启动
nohup sslocal -c /usr/src/shadowsocks/shadow_sock_client.json /dev/null 2>&1 &
Privoxy
Privoxy官网
cd /usr/src tar -zxvf privoxy.tar.gz useradd privoxy autoheader && autoconf ./configure make && make install vim /usr/local/etc/privoxy/config
listen-address 127.0.0.1:8118
forward-socks5t / 127.0.0.1:1080 .
vim /etc/profile
#add export http_proxy=http://127.0.0.1:8118 export https_proxy=http://127.0.0.1:8118 export ftp_proxy=http://127.0.0.1:8118
source /etc/profile
sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/183028.html