Forum Discussion
Andre_Padua_109
Dec 21, 2005Historic F5 Account
setting an array on one iRule and reading on another
Hi Guys and Gals,
Long time Reader, first post. Really love this site and the community and the results I get from reading other peoples experiences. Very cool.
The issue:
Basically, what I’d like to do is to write data to a variable in one iRule, and read it at another iRule. Each iRule runs on a different VS. Any solution will do (using arrays, using data groups or Classes or using external files).
The scenario:
User comes in to the VS at port 80. We check a class/data group or array to see if the user is already authenticated. If they are, they get to talk to the proxies and all is good. If they’re not listed in the array, they’re redirected to a VS at port 443.
This VS will authenticate the user using a client cert. Once that’s done, the iRule running on that VS will write the user’s source IP address to the array I mentioned above and will redirect the user back to port 80, to the original site they wanted to access.
This time around, the user’s IP address will be listed in the file and so the user will be able to access the site/proxy.
I have everything done, except being able to write any data to the class/datagroup/array in a way that can be read by the iRule on port 80.
So far the code I have is experimental and doesn't help much - I'll post it up as soon as all the bits and pieces are interconnected. Since it's test code, there are a few security breaches that can circumvent the auth, so I don't want anybody to use it as working code.
Thanks,
Andre
Rio de Janeiro
- Andre_Padua_109Historic F5 AccountI got my answer elsewhere - wanted to document it here for other users.
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