Forum Discussion
radpat_360084
Nimbostratus
Apr 30, 2018iRule for internal and external traffic
want to send internal client to an internal website and send all other traffic to a customer website. Also Intercept an HTTP 404 message from a pool member and send the client an HTTP redirect instead
- Faruk_AYDIN
Altostratus
in this sample iRule your internal subnet is assumed 10.0.0.0/8.
when HTTP_REQUEST { if { [IP::addr [IP::client_addr]/8 equals 10.0.0.0] } { pool internal_pool } else { pool external_pool } } when HTTP_RESPONSE { if { [HTTP::status] == 404 } { HTTP::redirect "http://www.anothersite.com/Info.html" } }
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