Forum Discussion
Jace_45978
Nimbostratus
Aug 12, 2011F5 iRule to reject/allow outbound access based on URI, DNS
because we have a FW that allows access outbound based on IP only, wondering if there is a way in the F5 to allow outbound access or reject access based on URI or DNS lookups.
example:
webse...
Colin_Walker_12
Aug 15, 2011Historic F5 Account
If it were me, I'd create a Data Group (class) with the list of hosts that you want to allow www traffic to. I'd then write an iRule that looks like:
when HTTP_REQUEST {
if {!([class match [HTTP::host] eq myDataGroup])} {
reject
}
}
This would prevent any requests bound for anything that's not contained in that data group.
Make sense?
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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