iRule to redirect pool based on header and ignoring SNAT
I'm currently trying to setup an iRule where when a user comes in and the header has iPhone in it, they are redirected to a different pool.
I'm able to confirm my iRule is functional, however the phone will still time out. After looking at TCPDumps and Connection logs, I'm able to see it was trying to use a weird IP, which I found to be a SNAT IP.
After further looking, I found in my VIP a iRule that does the following...
when RULE_INIT {
set static::snat_ips_CAS x.x.x.x
It creates about 6 SNAT's, and the last one is the one i'm using being used.
I'm unable to delete this iRule in the VIP as its needed for our exchange setup, however it seems to be conflicting with my other irule in the same VIP to redirect users.
I've tried adding in my irule event disable all and snat none but that doesn't seem to make a difference.
Im also unable to direct traffic coming in for phones to a different VIP.
Anyone have any ideas or suggestions?