Forum Discussion
Switch Statement Routing to Separate VS Using 'Virtual'
The return was only added after initial attempts that failed (exact same behavior) after finding a suggestion on a previous response here. I've also tried dropping down to the http version of the VS along with https. The issue seems to be it's just not assigning the traffic to the new VS despite the command being there.
Here's the first part of the iRule attached to the api_https (and api_http for that matter) virtual server. I only included the first part to show that immediately upon hitting the Vs, it should hit this iRule resulting in the log statement firing. I never receive that statement. Also, I can hit the api_https (or api_http) directly, so the IP restriction you see has been validated.
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr]/24 equals IP1]
or [IP::addr [IP::client_addr]/23 equals IP2]} {
log 10.10.0.9 local0.info "Host: [HTTP::host] -- URI: [HTTP::uri] "
....
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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