Sometimes it might be usefull to have a small http proxy running for a second browser window.
My favorit http proxy is “polipo”. It has a small footprint of 2MB.
Installation is quite easy:
apt-get install polipo
The config files are stored in /etc/polipo
There are two config files that should be altered:
The config file itself does include following should-be-set options:
proxyAddress = 127.0.0.1 #Listening IP of the proxy server proxyPort = 8888 #Port of proxy server allowedClients = 127.0.0.1,10.10.10.0/24 #Comma separated list of allowed clients proxyName = "proxy" #HTTP header name of proxy dnsQueryIPv6 = no #query for IPv6 addresses tunnelAllowedPorts = 443,5656 #Comma separated list of SSL ports diskCacheRoot = "~/.polipo-cache/" #Folder for cache localDocumentRoot = "" #disable local webserver
You can use cron+wget (+ http://adblockplus.o…n/subscriptions) to fill the file “/etc/polipo/forbidden” to add something like an adblocker to your http proxy.
Ensure that polipo is not listening to an public available IP address. You really do not want to run a public proxy.
Now you can enter “127.0.0.1:8888” as the proxy address to your browser settings.
If you need more, e.g. an SOCKS proxy you can use the SOCKS server which is part of ssh:
ssh -D 8080 yourvps.com
Now you can enter “127.0.0.1:8080” to your proxy settings of your Browser.
If you are using Firefox ensure that you are enabling “network.proxy.socks_remote_dns” on your “about:config” page. If you want to use a SOCKS proxy your Firefox should use the DNS resolver of your vps too. I do not know why the default value is “disabled”.