Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a squid instance that is configured to forward to a set of upstream proxy servers in a round-robin fashion. Here's the relevant config:

cache_peer x.x.x.1 parent 3128 0 round-robin no-query proxy-only login=user:pass
cache_peer x.x.x.2 parent 3128 0 round-robin no-query proxy-only login=user:pass
cache_peer x.x.x.3 parent 3128 0 round-robin no-query proxy-only login=user:pass

The problem I'm having is that occasionally one (or more) of these upstream proxies changes its authentication without telling me, and users of my squid proxy start getting the 'Proxy authentication' popup in their browsers.

Is there a way to make squid think a '407 proxy auth required' response actually means the server is dead and should be removed from the round-robin list?

Thanks.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You probably want to setup a monitorurl= for the cache_peer, more information on that here:

http://www.visolve.com/squid/squid26/neighboursel.php#cache_peer

Basically have the monitorurl be a script that tests the login. You could have the monitorurl point to a local test script or have it live on the cache_peers and test other things as well (we have ours test for available resources as well).

share|improve this answer
    
This is great, thanks so much! –  overthink Aug 29 '11 at 15:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.