Chris, Yes we have been doing it for some time now to my understanding but we get weird problems. Mark mentioned that Windows caches the DNS entries at which my other reply about the proxy auto config would more than likely work. I have used it before but never with 2 proxies. Thanks, Bill
I didn't see my email hit the list so I copied it below the important part anyways: One thing I tried a while back was using the autoconfig file for squid. For failover it works great. You can goto: http://squid-docs.sourceforge.net/latest/html/x1321.html#AEN1354 In the autoconfig file you would type something similar to: (replacing your own stuff of course) function FindProxyForURL(url, host) { return "PROXY 1.2.3.4:8080; PROXY 1.2.3.5:8080"; } Putting that in your proxy autoconfig file would perform your failover. But load balance is not performed. One way to perform load balance is also through this script but you would have to divide your network: if isInNet(host, "1.2.3.0", "255.255.255.0") { return "PROXY 1.2.3.4:8080; PROXY 1.2.3.5:8080"; } if isInNet (host, "1.2.4.0", "255.255.255.0" { return "PROXY 1.2.3.5:8080; PROXY 1.2.3.4:8080"; } So if both proxies are up and running a host in network 1.2.3.0 would get told to goto proxy 1.2.3.4 port 8080 first then try 1.2.3.5 port 8080 is it fails. A host in network 1.2.4.0 would get told to do the reverse. But if you looking for just failover the first would do the trick. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 23, 2002 11:37 PM To: [EMAIL PROTECTED] Subject: RE: Load Balancing SquidGurad Servers Thanks for your reply bill it makes sense to some degree.. In internet explorer, you have to designate a proxy server address and port number in order to use a proxy server. So I am guessing that instead of using an IP address in the address filed, I would actually use the dns name of the proxy server and the port number? Then I would make sure that the "A" record in my zone file reflect the 2 proxy servers, therefore doing roud robin? Chris > Chris, > Let's say you have 2 webservers: > www is 1.2.3.4 > www1 is 1.2.3.5 > > Well when your DNS server receives a www request it goes to the first > one www or 1.2.3.4 then next request your DNS gets points to 1.2.3.5 or > www2. As you can see if you have a lot of traffice like Yahoo.com this > will balance the laod because not all the traffic is hitting one > server. The bad part of this is that your DNS server will not know if > 1.2.3.4 is actually > onlin/active or working. In essence every other request will work if > that server goes down so 2 out of 4 people will get "Page can't be > displayed". > Now you can do this with your proxy server also. You physically need > to > separate servers and DNS to accomplish what your looking for. But it's > all done in DNS. To answer your question yes. I have 4 proxies that > round robin with squid and squidguard but that is 4 different servers I > have to maintain. > Thanks, > Bill > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Chris > Sent: Thursday, November 21, 2002 10:33 AM > To: [EMAIL PROTECTED] > Subject: Load Balancing SquidGurad Servers > > > Does anyone know how to setup 2 SquidGuard Servers to perform in a load > balancing/failover situation. I would to have my users user proxy > address 1.2.3.4 and if that one dies the 1.2.3.5 would take over... Is > that posibble at all? > > Chris
