Difference between revisions of "WPAD"
From Tech-Wiki
(Created page with "Category:F5 Networks '''Back to iRules''' when HTTP_REQUEST { # Check if request is for wpad.internal/wpad.dat if {[string tolower "[HTTP...") |
|||
Line 2: | Line 2: | ||
'''[[F5 Networks#iRules|Back to iRules]]''' | '''[[F5 Networks#iRules|Back to iRules]]''' | ||
− | when HTTP_REQUEST { | + | when HTTP_REQUEST { |
# Check if request is for wpad.internal/wpad.dat | # Check if request is for wpad.internal/wpad.dat | ||
if {[string tolower "[HTTP::host][HTTP::uri]"] eq "wpad.internal/wpad.dat"}{ | if {[string tolower "[HTTP::host][HTTP::uri]"] eq "wpad.internal/wpad.dat"}{ |
Latest revision as of 18:54, 20 May 2019
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"; } } } }