evan

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by evan

  1. 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

  2. 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

  3. 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""