Page 1 of 1

Polipo config

Posted: Thu Dec 15, 2011 9:14 pm
by NJI
I'm trying to run polipo on my TP-Link TL-WR1043ND, Gargoyle 1.4.4
I've installed polipo (using opkg), but I don't know how to config or test whether it is working or not.
Please give me some hints.

EDIT: I get an 403 when trying to access the polipo web interface. (yes, the router address is 192.168.123.95 :oops: )
Image
and there is no "cache" folder under "/var/". Is this normal?

Re: Polipo config

Posted: Fri Dec 16, 2011 3:12 am
by DoesItMatter
You probably have to read up on the manual and do some manual
config editing via command line.

You will also need to mount and configure a USB drive on the
USB port, and setup a /cache directory there, and then point
the config for polipo to use that directory.

You wouldn't have space on the flash to do any type of
web proxy file caching - you need an external hard drive configured.

http://www.pps.jussieu.fr/~jch/software ... olipo.html

Read up on the manual, but I don't think you'll get much help for
this Polipo in these forums.

Re: Polipo config

Posted: Fri Dec 16, 2011 3:41 am
by NJI
DoesItMatter wrote:You probably have to read up on the manual and do some manual
config editing via command line.

You will also need to mount and configure a USB drive on the
USB port, and setup a /cache directory there, and then point
the config for polipo to use that directory.

You wouldn't have space on the flash to do any type of
web proxy file caching - you need an external hard drive configured.

http://www.pps.jussieu.fr/~jch/software ... olipo.html

Read up on the manual, but I don't think you'll get much help for
this Polipo in these forums.
thanks for your help. I'll post the result if I can get something work.

Re: Polipo config

Posted: Fri Dec 16, 2011 10:28 pm
by NJI
Polipo has an option to enable/disable disk cache, so I turn it off and only use RAM cache (since I have much RAM available, I allocate 14MB for polipo)

Polipo is working properly for me, but I still have some problems:
Every computer needs to connect to the internet via the polipo proxy
For example: 192.168.1.1:8123 In my case, it is 192.168.123.95:8123
I find it a little bit troublesome to set the proxy for every computer and set it back when connecting to a different network. Therefore, I'm thinking of how to make the web proxy transparent to the users in my network, for example, using iptables to redirect the requests to 192.168.123.95:8123
I found this (by Google)

Code: Select all

iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner polipo -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8123
but I do not have user "polipo", so the script yielded an error and the proxy become useless
How can I add another user to Gargoyle?