Forum Discussion
How to create iRule to grant additional access to a specific client
Hi...I am new to iRules so my iRule construct is a bit basic, but here is the iRule
when CLIENT_ACCEPTED { if { [[IP::remote_addr] equals 203.45.160.26] || [[IP::remote_addr] equals 203.45.160.28] || [[IP::remote_addr] equals 203.45.160.31] } { pool bat1_test1 } else { pool bat1_test2 } }
Basically the idea is if the source IP address is from the 3 specific addresses it should sent the traffic to bat1_test1. All other traffic should go to bat1_test2. The question is the Virtual Server (VIP) has only one default pool bat1_test1, so I don't know how the irule will divert to bat1_test2 pool. When I applied the iRule, the normal traffic (i.e. access to bat1_test2) also stops working
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