apt-get install polipo
vi /etc/polipo/config
socksParentProxy = "localhost:9050" socksProxyType = socks5
#socksParentProxy = "localhost:9050" #socksProxyType = socks5
/etc/event.d/polipo
start on stopped rcS console output respawn exec /usr/bin/polipo
/etc/polipo/forbidden
chmod +x /usr/bin/adblock2polipo.py
cp /etc/polipo/forbidden /etc/polipo/forbidden.dist
#!/bin/bash wget http://easylist.adblockplus.org/easylist.txt \ --no-check-certificate -O /etc/polipo/easylist.txt cp /etc/polipo/forbidden.dist /etc/polipo/forbidden /usr/bin/adblock2polipo.py /etc/polipo/easylist.txt >> /etc/polipo/forbidden stop polipo start polipo
chmod +x /etc/polipo/update
/etc/polipo/update
ip: 127.0.0.1 port: 8118
localDocumentRoot
localDocumentRoot = /usr/share/polipo/www
forbiddenUrl = http://127.0.0.1:8118/empty.gif
wget -O /usr/share/polipo/www/empty.gif \ http://upload.wikimedia.org/wikipedia/commons/4/4b/Empty.gif
stop polipo start polipo
+adverts/
\+adverts/
# polipo Couldn't compile regex: 13. Established listening socket on port 8118.
# polipo Established listening socket on port 8118.