Forum Discussion
NISHANT_JOE_RA1
Nimbostratus
Oct 18, 2019Need to use DNS service for allowed IP range.
Hi all, My customer is the ISP vendor, we have implemented the F5 DNS in his premises. He had given the DNS IP for his customers. Also he need to use DNS service for allowed IP range(their custom...
Kevin_Davies
Nacreous
Oct 31, 2019The iRule below shows the various examples of using an iRule to control the traffic. The return command used below exits the event.
when CLIENT_ACCEPTED {
# string matching
if { [IP::client_addr] starts_with "10.10." } { return }
# subnet matching
if { [IP::addr [IP::client_addr] equals "10.10.0.0/16" ] } { return }
# class matching
if { [class match [IP::client_addr] equals my_class_name ] } { return }
# where my_class_name is an address class/datagroup with your subnets in it.
# nothing matches, reject the traffic
reject
}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
