I use polipo and add this into the config:
authCredentials = raidz:password
raidz is username
password is .... your password
You also need to set it to listen on your public ip by uncommenting the proxyAddress line and adding your machines public ip.
Polipo uses port 8123 by default...