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...
The_Bhattman
Nimbostratus
Aug 26, 2010Hi Jonathan,
I don't believe "ne" is a valid operator in the matchclass
You can either use "!" (not) or else clause
when DNS_REQUEST {
if { ![matchclass [IP::remote_addr] eq $::ip_allowed_datagroup] } {
drop
}
}
-or-
when DNS_REQUEST {
if { [matchclass [IP::remote_addr] eq $::ip_allowed_datagroup] } {
} else {
drop
}
}
I hope this helps
Bhattman
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