Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    WPAD IP Exclusion

    Scheduled Pinned Locked Moved Cache/Proxy
    5 Posts 2 Posters 6.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      ghinthsh
      last edited by

      Hi guys,

      My current wpad pac settings is

       function FindProxyForURL(url,host)
       {
       return "PROXY 192.168.0.1:3128";
       }
      

      is it possible to exclude client pc with ip addresses  192.168.0.240 - 192.168.0.254 to get autoproxy config?

      thanks in advance.

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Couldn't you just add those to the Bypass Proxy for These Source IPs list?

        1 Reply Last reply Reply Quote 0
        • G
          ghinthsh
          last edited by

          Thanks KOM,

          I have done some research, added the following codes

          
          {
          if (isInNet(host, "192.168.0.240", "255.255.255.255")||
          isInNet(host, "192.168.0.241", "255.255.255.255") ||
          isInNet(host, "192.168.0.242", "255.255.255.255") ||
          isInNet(host, "192.168.0.243", "255.255.255.255") ||
          isInNet(host, "192.168.0.244", "255.255.255.255") ||
          isInNet(host, "192.168.0.245", "255.255.255.255") ||
          isInNet(host, "192.168.0.246", "255.255.255.255"))
          and so on.....
          
          return "DIRECT";
          else
          return "PROXY 192.168.0.1:3128";
          }
          

          i have not tested it yet.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Sorry, my suggestion was dumb.  WPAD and transparent proxy don't really go together, and you need transparent for the Source exclusion list to work.

            1 Reply Last reply Reply Quote 0
            • G
              ghinthsh
              last edited by

              My PFBox setup is squid + squidguard wpad i will give it a try. or maybe putting an IP Address in Proxy Server-> Access Control -> ACLs will do the trick?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.