Forum Discussion
Get IP addresses from tmsh/GUI created snatpool in iRule
Hi,
Having a snatpool created from the tmsh/GUI, is there a way to get the snatpool IP address(es) from within an iRule?The snatpool for the virtual server can be found with LB::snat and it returns "/Common/snatpoolname". I'd like to put the snatpool IP address from a tmsh/GUI created snatpool in a DNS answer created by the F5:
when DNS_REQUEST {
DNS::answer insert "routedomain.is.[ROUTE::domain].and.your.external.ip.is. 111 [DNS::question class] [DNS::question type] "
DNS::return
}
Since this request/answer only involves the client and the F5 I can't seem to use the
IP:: to get the snat address that would've been used for this virtual server if the iRule didn't handle the answer.
/Per2 Replies
- Per_71362
Nimbostratus
Formatting removed one part from the DNS::answer,
DNS::answer insert "routedomain.is.[ROUTE::domain].and.your.external.ip.is. 111 [DNS::question class] [DNS::question type]
"snatpoolIPAddressPer
- Per_71362
Nimbostratus
I haven't been able to find a way to get the ip addresses from a tmsh/gui created snatpool. I worked around the problem by directing requests to a pool of real DNS servers. Rewriting the answer to the clients in an iRule. /Per
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
