On Thu, 11 Mar 2004, Darton Williams wrote: > I have a FreeBSD 4.8 system running the latest Squid 2.5 release. It's set > up as a reverse proxy, but I want it to automatically authenticate to the > one device it's supposed to proxy for. In other words, I have a device that > requires username and password (I'm guessing using simple WWW-Authenticate > headers since it's a firmware web server), and I want to pass that info, > transparently to the user, via Squid.
There is two ways a) cache_peer based forwarding, using the login= cache_peer option. b) Use a redirector helper to add the login information to the forwarded URL. Squid understands the URL syntax http://user:[EMAIL PROTECTED]/ and will automatically translate this into Basic HTTP authenticaiton. Regards Henrik
