Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

squid autoconfig- select local server based on client IP?

Status
Not open for further replies.
Oct 15, 2002
153
US
I have a small, but spread out WAN, and I am trying to install a network of passive Squid servers to act as caching proxy servers.

Overview: our enterprise is connected to the internet via fractional T1. from there, another router/T1 connects to the Frame Relay network, where all other branches connect to the corp office (17 locations). each location is connected via 128k circuits. Small, I know, but average user base is 12 users, and 90% of the traffic is terminal sessions to a mainframe.

I envision a main "parent" proxy at HQ, with child nodes locally at each branch. the child nodes field requests, check with the parent, then go out if needed.

------

I would like to setup an autoconfigure script on the parent server so that when the client connects to the parent for the config, it looks at the IP address of the client PC and directs the browser to use the squid server local to the client PC.

For example, a user in houston opens IE from a workstation with ip 192.168.12.54. the browser queries (192.168.1.5, the parent server). The parent server sees that the client is coming from the .12 network, and directs them to use 192.168.12.5 as the local proxy.

We are looking to deploy a standardized pre-configured install, and would like to be able to distribute it with the main autoproxy info already set in place.

Is that possible? If so, does anyone have script examples of how to do this?

TIA
 
our proxy configuration script at our site sits in cgi-bin ... but this only works for machines that are told where the script is.

the auto-configuration script is javascript based, you can get the script to configure the servers based on it's ip address ...

take a gander at:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top