Polipo config

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

Moderator: Moderators

Polipo config

Postby NJI » Thu Dec 15, 2011 9:14 pm

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
NJI
 
Posts: 18
Joined: Sun Nov 27, 2011 2:33 pm

Re: Polipo config

Postby DoesItMatter » Fri Dec 16, 2011 3:12 am

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.376.47
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.6.2
Linksys E3000 = Toastman Tomato USB 1.28.7505
TP-Link WR1043ND V1.8 - OpenWRT Trunk 43210
Engenius - ESR900 Stock 1.3.1
User avatar
DoesItMatter
Moderator
 
Posts: 1335
Joined: Thu May 21, 2009 3:56 pm

Re: Polipo config

Postby NJI » Fri Dec 16, 2011 3:41 am

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

Postby NJI » Fri Dec 16, 2011 10:28 pm

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
NJI
 
Posts: 18
Joined: Sun Nov 27, 2011 2:33 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 6 guests