[Support] Linuxserver.io - Polipo


Recommended Posts

linuxserver_medium.png

 

Application Name:  Polipo

Application Site:  http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/

Docker Hub:  https://hub.docker.com/r/linuxserver/polipo/

Github:  https://github.com/linuxserver/docker-polipo

 

Please post any questions/issues relating to this docker you have in this thread.

 

If you are not using Unraid (and you should be!) then please do not post here, rather use the linuxserver.io forum for support.

Link to comment
  • 5 months later...

I'm trying to set up polipo so that it works for all the computers on my network. Looking at the polipo FAQ, it seems I would have to change/add the line:

 

allowedClients = 127.0.0.1, 192.168.187.0/24

 

I looked in the conf file that came with this docker and I see 192.168.0.0/16 in there, does that already capture all of the machines on my network?

 

If not, can I change the conf file to the line above and have the config stay persistent across docker updates?

Link to comment
  • 7 months later...

also, where are cached files stored? in RAM? Or can you specify a share to be used in case you want to cache a lot of data?

 

not sure if the docker has changed since your question, however, the default location was under the docker's /config/cache. I was able to change this by adding a new path "/cache" to an unused SSD I have, then changing the polipo config file "polipo.conf" and updating the line starting with diskCacheRoot and changing it to "diskCacheRoot = "/cache""

Link to comment

I have a couple questions about this.

 

1. does anyone know how to setup this proxy to be used by your router, I guess with iptables? I am not sure the exact config with iptables that will work

2. is it possible to have polipo ignore certain domains/websites? i've been having a lot of trouble loading plex with polipo enabled, and i was hoping to see if there is a way to have polipo ignore "https://app.plex.tv/web/app" since i think it might be messing with the websockets? i am truly not sure

Link to comment
  • 2 weeks later...

I have a couple questions about this.

 

1. does anyone know how to setup this proxy to be used by your router, I guess with iptables? I am not sure the exact config with iptables that will work

2. is it possible to have polipo ignore certain domains/websites? i've been having a lot of trouble loading plex with polipo enabled, and i was hoping to see if there is a way to have polipo ignore "https://app.plex.tv/web/app" since i think it might be messing with the websockets? i am truly not sure

 

ended up figuring it out in case anyone was interested.

 

you can nest proxies easily using either privoxy or tinyproxy. privoxy has a forward setting, and tinyproxy has a upstream setting. i had to set privoxy to allow accept-intercepted-requests by setting it to 1. beyond that I set my router to forward all HTTP (port 80) data to the proxy server. both privoxy and tiny proxy allow you to "whitelist" domains, so to fix the plex issue I was having, i just needed to whitelist "plex.direct" as a domain

 

my iptables script from the dd-wrt wiki:

 

#!/bin/sh 
PROXY_IP=(insert ip_address)
PROXY_PORT=(insert port_number)
LAN_IP=`nvram get lan_ipaddr`
LAN_NET=$LAN_IP/`nvram get lan_netmask`

iptables -t nat -A PREROUTING -i br0 -s $LAN_NET -d $LAN_NET -p tcp --dport 80 -j ACCEPT 
iptables -t nat -A PREROUTING -i br0 -s ! $PROXY_IP -p tcp --dport 80 -j DNAT --to $PROXY_IP:$PROXY_PORT 
iptables -t nat -I POSTROUTING -o br0 -s $LAN_NET -d $PROXY_IP -p tcp -j SNAT --to $LAN_IP 
iptables -I FORWARD -i br0 -o br0 -s $LAN_NET -d $PROXY_IP -p tcp --dport $PROXY_PORT -j ACCEPT

 

netflix also doesn't like this setup so I had to find their ip ranges and whitelist them too - http://ipinfo.io/AS2906

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.