A-A+

Centos6.5配置shadowsocks和privoxy作HTTP代理服务器

2019年04月28日 未分类 评论 2 条 阅读 浏览:867 次
1、安装 ss 客户端 略
2、更新源
yum repolist
yum install -y epel-release
yum repolist
3、安装Privoxy
yum install privoxy -y
4、配置
vi /etc/privoxy/config 文件,
先搜索关键字 listen-address 找到 listen-address 127.0.0.1:8118 这一句,保证这一句没有注释,8118就是将来http代理要输入的端口。
然后搜索 forward-socks5t, 将 #forward-socks5t / 127.0.0.1:9050 .此句前面的注释去掉,
然后修改为forward-socks5t / 127.0.0.1:1080 .
意思是转发流量到本地的1080端口, 而1080端口是你的 ss 监听的端口。
5、重启privoxy
/etc/init.d/privoxy restart
6、让终端走代理
vim /etc/profile
添加以下几行:
export http_proxy=http://127.0.0.1:8118
export ftp_proxy=http://127.0.0.1:8118
source /etc/profile
7、启动并加入启动项
service privoxy start
chkconfig --level 35 privoxy on
8、检查测试
netstat -an | grep 端口号
curl www.google.com
标签:

2 条留言  访客:0 条  博主:0 条

  1. niko
    • 龙哥

给我留言

Copyright © 龙网博客 保留所有权利.   Theme  Ality

用户登录