Forum Discussion
Jessica_42876
Jul 26, 2014Nimbostratus
iRule trouble DNS_request
Hi! everyone
I have some issues with an iRule, the irule that my boss ask me is one that, check the IP that the client request and change the IP that response that request.
for example: ...
Stewart
Jul 28, 2014Altostratus
Hi Jessica,
First check that your version of GTM can deal with data groups. If it can (After 11.1 I think) you might want to modify your iRule slightly.
when DNS_REQUEST { if {[class match [IP::addr[IP::client_addr] equals "Red_1"]]}{ cname www.redirect.domain.ipn.mx } }
IP::client_addr because that yields the address of the clients that you want to check. IP::local_addr gives you an address that is on the BigIP itslef.
If you think that the problem may be down to the data group query you could try
when DNS_REQUEST { if { [IP::addr [IP::client_addr] equals 192.168.1.0/24] } { cname www.redirect.domain.ipn.mx } }
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