Forum Discussion
Pawel_1533
Nimbostratus
Jun 04, 2008URL check in Forwarding IP VS
Hi All,
I'm looking for a way to give servers behind the F5 access to the external resources (Internet). Those servers currently run as pool members serving HTTP services. I've created new Forwarding IP virtual server so they initiate outgoing connections. However I'd like to limit that access to a certain URLs like google.com or some other RSS feeds. Is it possible to limit it somehow using iRules or other BigIP functionality? I cannot achieve the same using firewall's rules as URLs usually convert to many (and changing from time to time) IPs.
Regards,
Pawel
- hoolio
Cirrostratus
Hi Pawel,class allowed_http_hosts { "google.com" "example.com" }
when HTTP_REQUEST { Check if requested host is allowed if {[matchclass [string tolower [HTTP::host]] contains $::allowed_http_hosts]}{ log local0. "[IP::client_addr]:[TCP::client_port] allowed request to [HTTP::host][HTTP::uri]" forward } else { log local0. "[IP::client_addr]:[TCP::client_port] rejected request to [HTTP::host][HTTP::uri]" reject } }
- Pawel_1533
Nimbostratus
It works fine. Thanks a lot Aaron.
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