View Single Post
  #1 (permalink)  
Old 2006-10-04
joelmoses joelmoses is offline
Junior Member
 
Join Date: 2006-08-04
Location: Nashville, TN
Posts: 7
Rep Power: 0
joelmoses has an average reputation (10+)
Default Blocking Dynamic DNS update attempts via FW-1 custom INSPECT

Thought I'd share this because it came in handy for us.

We had an issue where we wanted to allow DNS queries from our internal network, but had a problem with DNS updates going to sites that didn't want them from some misconfigured internal clients. DNS updates, of course, are actually carried as a DNS query with a specific "update" flag. One of our internal folks decided to set up a "test" zone using a domain name that, unfortunately, did not belong to them. The DNS updates went to the "real" site, which became quite annoyed by the traffic.

The following configuration will block all DNS update attempts, but allow DNS queries to pass without issue. It requires DNS UDP (query) traffic to be set to "Before Last" or "Last" in Global Properties/Firewall.

1) Create a service of type "Other".
2) Name the service "dns_udp_update", with an IP protocol of "17".
3) Click the "Advanced" button.
4) In the "Match" field, enter the following: "(([9:1]=17) and ([23:1]=53) and ([30:1]=0x28))"
5) Click OK and OK to save the new service object.
6) Add a rule to DROP traffic from your Internal network to the Internet using this service just above the rule that you use to accept DNS UDP (query) traffic. You can set the rule to log if you wish to track DNS update attempts.

Hope someone else gets some use out of this. I understand that this may actually be done by SmartDefense at some point (blocking of specific query flag traffic), but this does it now and with pretty much any version of FW-1.
Reply With Quote