Forum Discussion
Vadym_Chepkov
Nimbostratus
Jul 13, 2016How to filter private IP space from DNS_RESPONSE
We would like to return 'not found' answer if an "outsider" requested A record with IP from private rfc1918 networks. How one would accomplish that with iRule?
I saw some filtering examples available...
cjunior
Nacreous
Jul 13, 2016Hi, you can try to clear and respond a NXDOMAIN code, e.g.:
when DNS_RESPONSE {
if { not [class match [IP::client_addr] eq private_net] } {
DNS::answer clear
DNS::header rcode NXDOMAIN
}
}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