Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a squid proxy server running on my home server. I'd like my Firefox to use this proxy server when I'm in my home network, and otherwise use no proxy or some other network's proxy.

In Firefox' proxy settings, there's an option "Auto-detect proxy settings for this network". How do I make Firefox able to detect my proxy?

share|improve this question
up vote 0 down vote accepted

See this Wikipedia page on WPAD for how proxy autodetection works. Remember, DHCP based WPAD does not work in Firefox.

In your case you'd probably want to use Automatic proxy configuration URL. PAC files can check which subnet you are on (e.g. 192.168.1.x vs 192.168.2.x vs 10.5.x.x, etc), so if the home network uses a subnet unique to other networks you connect to, this will work. More information here.

Basic check for subnet you are in (taken from last link):

function FindProxyForURL(url, host)
    if (isInNet(myIpAddress(), "", ""))
        return "PROXY";
        return "DIRECT";
share|improve this answer
Thanks. While my subnet isn't unique, I'm sure I can either change that or find other ways to get around the issue. – Alex Apr 15 '12 at 8:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .