Forum Discussion
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