Forum Discussion
iRule to redirect to cloud service..
Need help to write an iRule, where need to differentiate outside request containing XML payload, and the send it to the cloud server (having dynamic IP, fixed domain name)basically request is provisioning request for one of the cell phone service.
Cloud then send response back to the internal XDM server, and notification should be send from internal server to cloud again. Any thoughts to achieve this is helpful. Thanks in advance!!
3 Replies
- StephanManthey
Nacreous
First part sound similar to a task on a forward proxy.
So after you figured out the cloud server´s name by parsing the HTTP payload in the context of HTTP_REQUEST you need to resolve the name:NAME::lookup $cloud_serverAfter the name resolution the NAME_RESOLVED will be triggered and after some sanity check you can pick the node, i.e.:
when NAME_RESOLVED { set host_ip [NAME::response] if { $host_ip ne "" } { use only the first A-record from a list of multiple returned IP-addresses set host_ip [getfield $host_ip " " 1] node $host_ip $port } } - Kevin_Stewart
Employee
A couple of questions:
-
Do you need the BIG-IP to parse the XML, look for specific content, and/or route the traffic based on the presence of the XML or some value within?
-
You say "cloud then send response back to the internal XDM server". Does that mean that the XDM server was the original requester? If so, are you asking about persistence?
-
- spalande
Nacreous
Hi Stewart, 1. Yes, need F5 to parse the XML, XML profile can do this job. Based on XML value need to direct it to the cloud server. 2. Original requester here is some third party IDS tools (web client https requests) these requests are special provisioning requests for third party. this would land on the already configured VS which is for normal provisioning requests. Requests with XML for PAM should go to cloud server and come to internal XDM server for creation of those profiles.
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