Privoxy
前沿:
这个玩意我以前都没听说过,今天在别人的帮助下试了试,只想说:谁还能阻挡我,我就是要USA。。。。ps:在此感谢每一个帮助我的人
介绍:
Privoxy是一款带过滤功能的代理服务器,针对HTTP、HTTPS协议。通过Privoxy的过滤功能,用户可以保护隐私、对网页内容进行过滤、管理cookies,以及拦阻各种广告等。Privoxy可以用作单机,也可以应用到多用户的网络。修改HTTP请求头的字段,如referrer和user agent,从而隐藏用户上一个查看的网页和用户正在使用的浏览器。
下载地址:
安装:
wget https://sourceforge.net/projects/ijbswa/files/Sources/3.0.24%20%28stable%29/privoxy-3.0.24-stable-src.tar.gz
tar zxf privoxy-3.0.24-stable-src.tar.gz
cd privoxy-3.0.24-stable/
autoheader
autoconf
./configure
make
useradd privoxy -r -s /usr/sbin/nologin
make install
配置文件:
vim /usr/local/etc/privoxy/config
user-manual /usr/local/share/doc/privoxy/user-manual/
confdir /usr/local/etc/privoxy
logdir /var/log/privoxy
actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
actionsfile default.action # Main actions file
actionsfile user.action # User customizations
filterfile default.filter
filterfile user.filter # User customizations
logfile logfile
listen-address 0.0.0.0:8118#监听的地址
toggle 1
enable-remote-toggle 0
enable-remote-http-toggle 0
enable-edit-actions 0
enforce-blocks 0
buffer-limit 4096
enable-proxy-authentication-forwarding 0
forward-socks5t /119.254.211.102:1080.# 使用转发的地址
forwarded-connect-retries 0
accept-intercepted-requests 0
allow-cgi-request-crunching 0
split-large-forms 0
keep-alive-timeout 5
tolerate-pipelining 1
socket-timeout 300
启动:
systemctl start privoxy
lsof -i:8118
下载文件:
cd /usr/local/src
重新启动:
/usr/local/sbin/privoxy /usr/local/etc/privoxy/config
lsof -i:8118
wget www.ipip.net
vim index.html
查看本地ip是不是已经代理出去:
http_proxy=127.0.0.1:8118 wget www.ipip.net
vim index.html
从里面看你的IP。
题外话:自己标记使用
zipkin目录下面的这个文件gradle.properties
在最下面添加以下内容:
systemProp.http.proxyHost=192.168.100.33 # 本机IP
systemProp.http.proxyPort=8118
systemProp.https.proxyHost=192.168.100.33
systemProp.https.proxyPort=8118