More proxy configuration

Seeing this posting about changing proxy configurations depending on location reminded me that there are many ways to skin a cat. This one has worked ever since Netscape started supporting PAC files for proxy configuration, first on my home system, then my laptop and now everywhere. It relies on me always creating an ssh tunnel to the proxy server, well you would wouldn't you so that you can get all that HTML compressed.

Since JDS on Solaris 10 supports the use of the automatic proxy configuration as well this now works just perfectly for all the clients that will use the defaults.

Whilst not the fastest way, as it involves a name service look up before it connects to the web site it is very functional, ie it works:

function FindProxyForURL(url, host) {
	if (isResolvable(host)) {
		return "DIRECT";
	} else {
		return "PROXY localhost:8080; ";
	}
}
Comments:

Post a Comment:
Comments are closed for this entry.
About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« July 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today