Polipo config

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
NJI
Posts: 18
Joined: Sun Nov 27, 2011 2:33 pm

Polipo config

Post 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?
TP-Link TL-WR1043ND (v1.7)
Gargoyle 1.4.4

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Polipo config

Post 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.
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

NJI
Posts: 18
Joined: Sun Nov 27, 2011 2:33 pm

Re: Polipo config

Post 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.
TP-Link TL-WR1043ND (v1.7)
Gargoyle 1.4.4

NJI
Posts: 18
Joined: Sun Nov 27, 2011 2:33 pm

Re: Polipo config

Post 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?
TP-Link TL-WR1043ND (v1.7)
Gargoyle 1.4.4

Post Reply