This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WebProxy automatic Proxy Settings via PAC / WPAD.dat

Hello at all,

we have some issues with using the automatic Proxy Settings for WebProxy.

The function should be:

Surfing from internal Network (172.20.10.0) to external -> use proxy 172.20.11.1:3128

If we want connect to the Sophos WebAdmin 172.20.11.1 -> DIRECT

But it don't work.

The normal settings for websurfing is still running (IE, automatic proxy configuration, DHCP Option 252) , but we can't connect to webadmin.

We need some excpetions for internal webservers on port 69 and so on.



function FindProxyForURL(url, host)
    {
    if (shExpMatch(url, "https://172.20.11.1:4444")) {
    return "DIRECT";
    }
    if (isInNet(myIpAddress(), "172.20.10.0", "255.255.240.0"))
    return "PROXY 172.20.11.1:3128";
    else
    return "DIRECT";
    }

What is wrong? :-/

Thank you a lot in forward and kind regards
Daniel



This thread was automatically locked due to age.
Parents
  • What happens with this, Daniel?  I haven't tested it.

     {
    //Direct access to passthrough
    if (url.substring(0, 4)=="ftp:" ||
    shExpMatch(url, "http://passthrough.fw-notify.net*/*"))
       return "DIRECT";
    //Direct access to local webpages
    if (isPlainHostName(host) ||
    shExpMatch(host, "*your internal domain") ||
    isInNet(dnsResolve(host), "172.20.10.0",  "255.255.240.0") ||
    isInNet(myIpAddress(), "172.20.10.0",  "255.255.240.0"))
       return "DIRECT";
    else
       return "PROXY 172.20.11.1:3128";
    }

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • What happens with this, Daniel?  I haven't tested it.

     {
    //Direct access to passthrough
    if (url.substring(0, 4)=="ftp:" ||
    shExpMatch(url, "http://passthrough.fw-notify.net*/*"))
       return "DIRECT";
    //Direct access to local webpages
    if (isPlainHostName(host) ||
    shExpMatch(host, "*your internal domain") ||
    isInNet(dnsResolve(host), "172.20.10.0",  "255.255.240.0") ||
    isInNet(myIpAddress(), "172.20.10.0",  "255.255.240.0"))
       return "DIRECT";
    else
       return "PROXY 172.20.11.1:3128";
    }

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
No Data