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

Problems configing the new proxy.pac settings

Nomatter what i type in the javascript box i get this error

Cannot apply changes:
conflicting data types for specified node

Even if i type nothing and just hit apply.


Second question is how to test, Once i get the text typed in, am i able  to hit this file by typeing http://address/wpad.dat


This thread was automatically locked due to age.
  • I just tried this and everything went swimmingly.  I used the following:

    http://10.10.10.1:8080/wpad.dat in Internet Explorer

    In the box, I entered:

    function FindProxyForURL(url, host) 

     if (isInNet(myIpAddress(), "10.10.10.0", "255.255.255.0")) 
      return "PROXY 10.10.10.1:8080"; 
     else 
      return "DIRECT"; 
    }

    I'm on V7.504.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Is it possible to do this for a multi building site where say you have these networks.

    10.10.0.0 255.255.0.0
    10.11.0.0 255.255.0.0
    10.12.0.0 255.255.0.0

    The routing is happening between the buildings.

    Let me know if need more info.

    Thanks
  • you can just keep typeing more addresses like below

    if (isInNet(dnsResolve(host), "10.10.10.0","255.255.0.0") ||
    isInNet(dnsResolve(host), "10.10.11.0","255.255.0.0") ||
    isInNet(dnsResolve(host), "10.10.12.0","255.255.0.0") ||
    isInNet(dnsResolve(host), "192.168.3.1","255.255.255.0") || 
    return "PROXY 10.10.10.1:8080"; 



    I still get this in the box, can someone tell me what this error means

    "Cannot apply changes:
    conflicting data types for specified node"
  • Barry, you clearly know more about this than I, but I did play a little with this today.  Don't you need to have "function FindProxyForURL(url, host)" as the first line in the box?  I tried without that and still didn't get the message you have.  Did you recently do an upgrade from V7.3?

    If I understand your code, isn't it a requirement that the other subnets be enabled to reach the proxy at 10.10.10.1 with packet filter rules?  Wouldn't another alternative also work?

    function FindProxyForURL(url, host)

    if (isInNet(myIpAddress(), "10.10.10.0", "255.255.255.0")) 
    return "PROXY 10.10.10.1:8080"; 
    if (isInNet(myIpAddress(), "10.10.11.0", "255.255.255.0")) 
    return "PROXY 10.10.11.1:8080"; 
    if (isInNet(myIpAddress(), "10.10.12.0", "255.255.255.0")) 
    return "PROXY 10.10.12.1:8080"; 
    else 
    return "DIRECT"; 
    }



    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Did you have error messages in confd.log (Configuration daemon ) like that:

    "INCOMPATIBLE_DATA (conflicting data types for specified node)" 
    and
    value="REF_DefaultHTTPCFFBlockAction" ?

    Maybe the "Default content filter block action" in HTTP / Profiles / Filter Actions is missing and you have to recreate this on the command line (ssh or console)

    cc
    OBJS
    http
    cff_action
    new REF_DefaultHTTPCFFBlockAction
    av=0
    spyware=0
    mode=deny
    name=Default content filter block action
    max_filesize=10
    extensions=[]
    comment=This is the default content filter block action profile 
    w

    (every line ended with ENTER)

    Good luck!

     

    Sophos Certified Architect (UTM + XG)