Forum Discussion
ciscozest_30697
Aug 03, 2018Nimbostratus
iRule cannot fetch iFile (wpad.dat)
I am having issue with iRule. Once it is applied to VS, I cannot access internet anymore and always got error message "You've asked for something we don't have" which is the default event from iRule....
Samir_Jha_52506
Noctilucent
Just guessing, Suspecting issue with external data source
hxxp://x.x.x.x/MDD/wpad.dat
.
In this case iRule iFile is searching details inside F5 directory
/config/filestore/files_d/Common_d/ifile_d
Can you import wpad.dat file in F5 and run @AMG's iRule.
System > File Management--> iFile List --> Import
Hope will work...
Cheers...
Andy_McGrath
Aug 07, 2018Cumulonimbus
Should be no issue with the iFile as simply plain text.
Is the iFile and the Virtual Server you are assigning the iRule to in the same partition, i.e. both in partition named 'MDD'?
If you try the following, removing the partition reference:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP:uri]] {
"/mdd/wpad.dat" {
HTTP::respond 200 contain [ifile get wpad.dat] "Content-Type" "application/x-ns-proxy-autoconfig" "pragma" "no-cache"
}
default {
HTTP::respond 404 content "You've asked for something we don't have."
}
}
}
Failing this can you run the folllowing and share the output:
tmsh list sys file ifile /MDD/wpad.dat
tmsh list ltm ifile /MDD/wpad.dat
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects