Forum Discussion
need help with an irule
I have a source that need to be always directed to a particular server behind the pool.configured an irule and its working as expected
when CLIENT_ACCEPTED { if { [IP::client_addr] == "192.168.10.6" } { pool app_prd_pool member 10.12.15.13 443 } }
Now I need to add another source 192.168.10.7 to access the same pool member (10.12.15.13 ),please let me know how I can do this.
4 Replies
- Jinshu
Cirrus
Hi Mate,
You can use the class for add multiple IP addresses in the irule for the same results so that in future if you want to add more addresses you can add it in the class without making changes in irule.
For example:
class custom_bypass_group_class { host 192.168.10.6 host 192.168.10.7 } when CLIENT_ACCEPTED { if { [class match [IP::client_addr] equals custom_bypass_group_class] } { pool app_prd_pool member 10.12.15.13 443 } }-Jinshu
- sandiksk_35282
Altostratus
Jinshu thanks for your response , in the GUI where exactly I need to create the class.Please let me know
- Andy_McGrath
Cumulonimbus
Local Traffic - iRules - Datagroup - Jinshu
Cirrus
Yes.. Thats right. in GUI it is called data-group.. Class and data group are of same. Sorry for the confusion.
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