Forum Discussion
Luca_55898
Jul 05, 2011Nimbostratus
Using an iRule for a proxy pac file
Trying to get an iRule working to deploy a proxy pac file.
I have been reading this link http://devcentral.f5.com/wiki/default.aspx/iRules/Proxy_Pacfile_Hosting_without_need_for_Web_servers.htm...
The_Bhattman
Jul 05, 2011Nimbostratus
Hi Luca,
The iRule looks fine from what I can tell. However, I think you can remove
if (dnsDomainIs(host, ".extranet.com")||
dnsDomainIs(host, ".extranet2.com"))
return "Proxy proxy1.ourbusiness.com:8080";
Because you have a
"return "PROXY proxy1.ourbusiness.com:8080";
which is a catch all that if nothing matches the IF statements with the proxy.pac logic - ALWAYS go to proxy1ourbusiness.com:8080
Yes you can create a virtual 192.1.1.1:8080 with the iRule associated to the virtual then accessing the pacfile would be http://192.168.1.1:8080/proxy.pac
I hope this helps
Bhattman
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