Jump to content
Toggle menu
  • 51 articles
  • 24 files
  • 4 users
  • 750 edits
Tech-Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.


Practical configuration and operational reference for WPAD.

Procedure

when HTTP_REQUEST {

   # Check if request is for wpad.internal/wpad.dat 
   if {[string tolower "[HTTP::host][HTTP::uri]"] eq "wpad.internal/wpad.dat"}{ 
      HTTP::respond 200 content {\ 
          function FindProxyForURL(url, host) {\ 
           if(shExpMatch(host, "*[^0123456789.]*") == false) \ 
           if( isInNet\(host, "127.0.0.0", "255.0.0.0") \ 
           || isInNet(host, "172.17.0.0", "255.255.0.0") \  
           || isInNet(host, "172.18.0.0", "255.255.0.0") \ 
           ) \ 
           return "DIRECT"; \ 
           else \ 
           return "PROXY proxygateway.internal:8080; DIRECT"; } 
      } 
   } 
}

See also