Forum Discussion
Jonathan_Robins
Nimbostratus
Aug 26, 2010GTM iRule to block certain IPs DNS Query of a WideIP
Hello
I need to stop a GTM Wide IP from responding to client IPs unless they are in a whitelist.
Ideally the GTM would respond with an NSDOMAIN rather than drop the request.
I am...
Jonathan_Robins
Nimbostratus
Aug 27, 2010I had to make one further change as for some reaon the IP:addrr match was not matching a client ip to a subnet/mask.
After trying many combinations of "address/mask", "address mask 255.255.0.0" etc. I found that I had to put the mask on the client_addr end not the subnet end.
So my final working setup is:
when DNS_REQUEST {
if {![IP::addr [IP::client_addr]/20 equals "X.Y.Z.0"]} {
if {![IP::addr [IP::client_addr]/16 equals "172.29.0.0"]} {
cname "somewhere.else"
}
}
}
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