squid

Modify HTML Content with Squid

We have setup our network as per the tutorial here: https://help.ubuntu.com/community/Upside-Down-TernetHowTo. Basically, we have a squid proxy that inverts images for pages that clients request. We're trying to modify the script so that we can edit the contents of the webpage before the webpage is sent to the client. We are not having...

Squid proxy not serving modified html content

I'm trying to use squid to modify the page content of web page requests. I followed the upside-down-ternet tutorial which showed instructions for how to flip images on pages. I need to change the actual html of the page. I've been trying to do the same thing as in the tutorial, but instead of editing the image I'm trying to edit the htm...

Squid server - multiple originservers with different domains

I have 2 squid servers load-balanced with F5 LTMs set up as a reverse proxy. My problem: origin server A hosts domains 1, 2, and 3 origin server B hosts domains 4 and 5. how can I set up squid so that it will cache all vhosts for both servers? my current config: cache_peer serverA parent 80 0 round-robin no-query originserver login=...

SQUID Proxy - does it have an interface for reviewing internet usage?

Hi Does SQUID (for Windows specifically) it have an interface for reviewing internet usage? More specifically if I wanted a way to track, for my PC at work, it's internet usage on a per application/service basis (e.g. browser vs calendar synch service etc), would SQUID for Windows help me here? (i.e. would it act as a transparent pr...

Squid+iptables: how do i allow https to pass-through and bypassing Squid?

Hello, Basically started with Squid and iptables today (google is your friend). This stuff is going to be the death of me. I have Squid3 setup on Ubuntu 9.04 server as Transparent Proxy. It works sweetly when i use the proxy-box as my default gateway etc. The iptable rules for this setup was part of the tutorial. :P I can unfortunatel...

Squid handling of concurrent cache misses

We're using a Squid cache to off-load traffic from our web servers, ie. it's setup as a reverse-proxy responding to inbound requests before they hit our web servers. When we get blitzed with concurrent requests for the same request that's not in the cache, Squid proxies all the requests through to our web ("origin") servers. For us, thi...

Can squid forward DNS queries to a DNS server?

This might something be completely impossible to achieve, but before I give it a shot thought I might get some advice from a fellow geek. Would squid proxy DNS queries as well? I would like to forward DNS queries to go through squid and use squid's DNS error page, of course by customizing it. I see the DNS queries are hitting my squid bo...

Help with squid proxy on VPS

I've spent the past 2 days attempt an install of squid caching proxy on my hostgator vps. I've gotten all the way up to the point where I turn the squid service on and always end up with the same issue "ipcCreate: /usr/lib/squid/ncsa_auth: (13) Permission denied" in the squid log. Here is the log from squid itself: 2010/04/20 16:12:5...

PHP / SquidGuard / SSH2_EXEC : file creation error

Hello and thanks to read me. I've got a problem with the creation of a squidGuard.conf file. I'm using php in order to create a conf file. This one is well created and his content is right. But when squid try to use it, it find an error. The problem is the fact that there is no error. If i open the file with VI, delete an empty line a...

Squid logs on mongodb

Hi, I'm planning to log my squid instances to a mongodb, but the actual problem is that we have a huge traffic to be logged, every access authenticated with user/pass. Eventually we have to make some reports based on logs. I was thinking to insert the logs distributed by months and by users, so my collection will look like this: {month:...

Can squid cache objects based on object type?

The URL I get the images from are not dynamic but they end with aspx so I have added a refresh_pattern to cache them however if these URLs change in the future I need to change the config manually again. So I would like to know if squid can be configured to cache objects based on content type rather than URL so that no matter what they d...

PF, load balanced gateways, and Squid

Hi, So I have a FreeBSD router running PF and Squid, and it has three network interfaces: two connected to upstream providers (em0 and em1 respectively), and one for LAN (re0) that we serve. There is some load balancing configured with PF. Basically, it routes all traffic to ports 1-1024 through one interface (em0) and everything else t...

Using Tor behind a proxy ?

hi, i'd like to use TOR/polipo behind a proxy like below ME --> POLIPO --> TOR --> PROXY SQUID --> WEB Couldn't find how to do that. When specifying a parent proxy for polipo, it goes straight for it without using TOR so my IP Adress doesn't change. Please any idea is welcome. ...

Twitter API + OAuth - 401 error developing locally using reverse SSH tunnel

I'm developing a django application which lets users connect their Twitter account. As I'm developing locally, I have set up a reverse SSH tunnel so that the Twitter API has a valid callback url (myserver.net): ssh -nNTR :6969:localhost:8000 myserver.net On successful authentication, Twitter passes back its OAuth access tokens to mys...

is there a way using Ruby's net/http to post form data to an http proxy?

I have a basic Squid server setup and I am trying to use Ruby's Net::HTTP::Proxy class to send a POST of form data to a specified HTTP endpoint. I assumed I could do the following: Net::HTTP::Proxy(my_host, my_port).start(url.host) do |h| req = Net::HTTP::Post.new(url.path) req.form_data = { "xml" => xml } h.request(req) ...

is there a way to make squid transparent proxy in windows ? (python)

i know there's a way using "SoftPerfect Bandwidth Manager" but what i want is to use python to do that, maybe using pypcap or something like that thanks ...

authenticate throw squid proxy (PHP socket)

hello, I'd like to create a program which could authenticate throw Squid proxy. I'm using socket in PHP langage ...

Publicly available Web proxy forward cache logs/data sets

I'm looking to do some analysis on HTTP requests that occur between clients and web servers. Are there any recent (at least within last 4 years) publicly available data sets of web proxy forward cache logs, such as those recorded by a Squid proxy? I'm most interested in forward cache HTTP log data - so coming from a cache that sits bet...

Need regex help with 2 URL rewrite cases (for SQUID server using SQUIRM)

case 1: IN: example.com?p1=val1&p2=val2&p3=val3 OUT: example2.com?p1=val1&p2=val2&p3=val3&p4=val4 -- p4=val4 was added to the end, the rest of the parameters were preserved case 2: IN: example.com?p1=val1&p4=badvalue OUT: example2.com?p1=val1&p4=goodvalue -- the value of p4 was changed, so we need to scan for the existence of the ...

How to authenticate .NET2 Webservice with a SQUID proxy

I've got a little utility that is a SOAP WebService client. The SOAP-proxy is generated from WSDL. It was working fine. Now the customer wants to use a SQUID proxy, but that refuses to authenticate my SOAP client. I have already tried: MyWebservice ws = new MyWebservice(); // set URL etc. // login for the actual service, this part...