Forum Discussion
Need to allow only a few networks/IP blocks for DNS request
Hi
We are using an LTM iRule and is applied to the Virtual Server. I have not found whether or how SNAT can be done on client side.
I have also tried with the trigger "when DNS_REQUEST" and found no hit on that iRule and traffic is processed as is. This iRule is applied on the Virtual Server, the IP which clients are using as their DNS.
when DNS_REQUEST {
Previously it was CLIENT_ACCEPTED
if { [matchclass [IP::client_addr] equals TrustedAddresses] }{
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - forwarding traffic"
forward
} else {
Uncomment the line below to turn on logging.
log local0. "Invalid client IP: [IP::client_addr] - discarding"
discard
}
}
I am logging whether its allowed or discarded. When I was using CLIENT_ACCEPTED, I could see in logs as.
"Valid client IP: (one of the self IP) - forwarding traffic"
Our expectation is to see "Valid client IP: (one of the client IP) - forwarding traffic"
Thanks
- Ispone_netadminFeb 25, 2014
Nimbostratus
Hi Mike, Thanks for your answer. I could not find any way to remove doing SNAT from client side as there is nothing regarding SNAT on the self IP configuration. In our case, from the log its evident that SNAT is happening before the iRule is hit as we can see the NATed IP in the logs. Thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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