Forum Discussion
spalande
Nacreous
Sep 30, 2013iRule 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 provisi...
StephanManthey
Nacreous
Sep 30, 2013First 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_server
After 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
}
}
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