Search squid archive

Re: Firefox road warrior autoconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 13, 2009 at 07:36:48AM -0700, Yan Seiner wrote:
> 
> In other words, for a laptop, how do I use a proxy in a location where 
> it's required and not elsewhere without reconfiguring the browser?
> 

I sort of do this at home, sometimes my squid proxy is not available
on my home network.  What I do to automatically work around this is
have the proxy configuration file on the local laptop file system
e.g. /var/proxy_script/proxy.pac then in the firefox proxy
configuration point the browser at this proxy script using:

file:///var/proxy_script/proxy.pac

in the proxy.pac I have:

function FindProxyForURL(url, host)
{
  var proxy_str = "PROXY 192.168.1.1:3128; DIRECT";
  return proxy_str;
}

When you have a proxy available it will be used.  If the proxy is not
available then firefox will just spend ages loading pages initially
but once it has decided that the proxy is dead then pages load as per
normal.  Every now and then firefox will take a while to load a page
as it decides to retry the proxy but overall you should have a hitch
free surfing session.  I cannot remember the last time I tweaked my
proxy settings after putting this solution in place.

-- 
Brett Lymn
"Warning:
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited.  If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility.  It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
your computer."



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux