Forum Discussion
bengbrewer_1026
Nimbostratus
Nov 19, 2010Dynamically writing to an iRule
I am new to DevCentral. I was wondering, is there a way via the iControl openAPI to dynamically write IP addresses to an iRule? If so, where might I be able to find some pointers on how to d...
Nov 22, 2010
I'm still a bit confused. In your situation you are getting an alert in the form of an address and you want to send that address to the iRule to redirect a connection. Am I to assume that the address in question that your alert system is sending out is one that you want to check for user connections from and then redirect those users? That sounds like what you want to do but it's still a bit unclear to me.
If that is what you want to do, you can use iControl to store the addresses in a data group (or Class in iControl speak). Then you can build an iRule that will compare the client address of a connection to see if it exists in that data group. If you look up the "matchclass" or "findclass" iRule commands in the Wiki, you'll find examples of just that. You'll just need to write the iControl code to access and modify the data groups. I wrote a tech tip on accessing Data Groups with iControl a while back that may be useful to you.
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/204/iControl-101--13--Data-Groups.aspx
Hope this helps...
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects