RE: [squid-users] Squid HTTP Headers

From: Jason Hodges <jhodges_at_pocket.com>
Date: Mon, 30 Nov 2009 07:59:42 -0600

Hi Henrik. Thank you very much for the response.

>How often do the IP assignments change?
>
>Or most importanly, how long time needs to pass before an IP is reused
>for another customer?
>
Those are great questions. The IP assignments change very frequently.
Cell phones are often connected for < 1 minute. The 'module' would
probably need to query a database for every hit to the "homepage".
These are cell phones so they don't surf very many sites and when they
do it's quite slow. It's only the 1xRTT technology. (basically 56k
speeds)

Thanks again for the feedback.
 

Regards,
Jason P Hodges
Senior Network and Systems Architect

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik_at_henriknordstrom.net]
Sent: Friday, November 27, 2009 6:42 PM
To: Jason Hodges
Cc: squid-users_at_squid-cache.org
Subject: Re: [squid-users] Squid HTTP Headers

fre 2009-11-27 klockan 09:08 -0600 skrev Jason Hodges:

> The "Web Content Provider" that serves ringtones, games, etc to our
> subscribers requires that we have an http header inserted as the users
> surf their site. The header is x-msisdn. The value should be the
> subscriber's phone number (mdn). We have been unsuccessful at finding
> a good/solid solution for retrieving the mdn and inserting an http
> header. The mdn (in our case) is stored in a database, so the
> information is easily available. However, we do not know how to make
> squid request the mdn and inject the http request header.

Right. And I can understand your frustration. Squid as out of the box do
not easily support this.

I had an unpublished patch for Squid-2.6 that enabled external acls to
return additional header details which would suit your problem nicely,
but it's somewhat lost in time by now I am afraid.

I guess the currently supported method is to design an ICAP server or
eCAP module doing the needed request transform.

Or alternatively resurrect that old external acl functionality. Wasn't
hard to implement (an hour including testing I think). Might make sense
to extend this to url rewriters as well.

> Here are some details:
> 1. The mdn is stored in a database with an association to the ip
address the subscriber was assigned. Optionally this same information
is stored in a flat text file (radius accounting detail log)
> 2. We only want to inject this http header for certain URLs.

How often do the IP assignments change?

Or most importanly, how long time needs to pass before an IP is reused
for another customer?

Regards
Henrik
Received on Mon Nov 30 2009 - 13:59:51 MST

This archive was generated by hypermail 2.2.0 : Mon Nov 30 2009 - 12:00:04 MST