Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

GTM - iRule - Source IP persistence for only one network

Hi

I want to impelemt in GTM a persistence for a specific wide IP. That persistence should persist based on source IP address . But there is a network (192.168.0.0 255.255.0.0) that I need it to be persist for /16 . And this should be only for this network . Anything else should persist based on /32 subnet . Does GTM support this , if not , then can I do that in irule .

0
Rate this Question
Comments on this Question
Comment made 1 month ago by Abed AL-R 210

Any help on this ?

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

TECHNICAL ARTICLE Selective DNS Persistence on GTM

search this article, it gives great irule.

rule "SelectivePersist-rule" { when DNS_REQUEST { if { [IP::addr [IP::client_addr]/16 equals "10.1.0.0"] \ or [IP::addr [IP::client_addr]/16 equals "10.2.0.0"] } { cname "myService-noPersist.gtm.test.com" } } }

wideip { name "myService.gtm.test.com" persist yes persist_ttl 1800 pool_lbmode rr pool "myPool" rule "SelectivePersist-rule" }

wideip { name "myService-noPersist.gtm.test.com" pool_lbmode rr pool "myPool" }

0
Comments on this Answer
Comment made 1 month ago by Abed AL-R 210

The thing with this irule is that it is going to persist based on /32 CIDR . I need the persistence for /16 CIDR for only one network . I tried also this irule but didn't help: when DNS_REQUEST { if { [IP::addr [IP::client_addr]/16 equals "192.168.0.0"] } { persist enable } }

0