[Solved]WPAD settings for 2nd Interface

  • Hi!

    My current config is Squid + Squidguard WPAD


    WPAD Settings

    function FindProxyForURL(url, host) 
        if (isPlainHostName(host) ||
            shExpMatch(host, "*.local") ||
            isInNet(dnsResolve(host), "",  ""))
            return "DIRECT";
        return "PROXY";

    I am planning to add WLAN Interface and also want to apply wpad settings on wpad


    is it possible to configure wpad pointing to and

    Thanks in advance.

  • Try this:

    // If the IP address of the local machine is within a defined
    // subnet, send to a specific proxy.
        if (isInNet(myIpAddress(), "", ""))
            return "PROXY";
        if (isInNet(myIpAddress(), "", ""))
            return "PROXY";

  • thanks -flo- it worked.  :)

Log in to reply