Forum Discussion
Rise_77519
Nimbostratus
Apr 01, 2013redirection client based a ticket value
hi,
I am using soap application and some soap message has ticket value that includesan ip address and a port number. I would like to know that is it possiblewith irule to redirect client to ip address and port number when soap message contains the ticket value.?
Thanks,
< sendProcessResponse>
<ticket>10.0.0.177:8080ticket>
17718898>
56788
1 Reply
- hoolio
Cirrostratus
Hi Rise,
Do you want to redirect the client to a new HTTP URI or direct them to a specific destination IP:port from the payload? If the latter, how would you want to validate the IP:ports to ensure a client can't access any arbitrary host?
In general you can collect an HTTP payload using HTTP::collect and in HTTP_REQUEST_DATA check the [HTTP::payload] value and select a pool member or destination node IP:port. Here are a few links to get started with:
https://devcentral.f5.com/wiki/iRules.http__collect.ashx
https://devcentral.f5.com/wiki/iRules.HTTP_REQUEST_DATA.ashx
https://devcentral.f5.com/wiki/iRules.http__payload.ashx
https://devcentral.f5.com/wiki/iRules.pool.ashx
https://devcentral.f5.com/wiki/iRules.node.ashx
If you want to check the IP:port from the payload against a list of allowed destination IP:ports, you could store them in a string data group and use the class command to do a lookup:
https://devcentral.f5.com/wiki/iRules.class.ashx
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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