Is a default pool to a virtual server required if its desired to have the traffic to the virtual server directed by an associated irule? We have a single virtual server where depending on the traffic source (internal/external) the target should MFA. One pool will have MFA and the other for internal traffic will not. So far I have the following irule built (not tested yet):
when CLIENT_ACCEPTED { if { [IP::addr[IP::client_addr] equals 50.0.0.0/8] } { pool pool_int } else {
pool pool_ext } }
However, I am unsure if a default pool associated to the virtual server is required or recommended. Any guidance is greatly appreciated.
No, you wouldn’t need a default pool associated with the virtual server as long as you are using pools in your iRule. I do this all the time. The VIP should be UP if atleast one of your Pool is green.
After some testing, I can access each pool if I make each one the virtual servers “default pool”. However, if I remove the default pool and rely on the iRule the traffic is not routed. Is there something I am missing in the iRule?
when CLIENT_ACCEPTED { if { [IP::addr[IP::client_addr] equals 50.0.0.0/8] } { pool pool_int } else { pool pool_ext } }