CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > Services
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-10-04
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
  #2 (permalink)  
Old 2006-10-04
Senior Member
 
Join Date: 2006-02-02
Posts: 204
Rep Power: 3
RobertGraham has an average reputation (10+)
Send a message via MSN to RobertGraham Send a message via Yahoo to RobertGraham
Default Re: Blocking Dynamic DNS update attempts via FW-1 custom INSPECT

Nice work - that's very helpful indeed.

Along those lines though, I would add that in light of the numerous malicious tools hiding their evil payload on port 53 as well as other problems related to DNS-reply amplification attacks, it's a good idea to consider having an internal caching server that is the only host allowed to access the Internet for DNS. This reduces queries over the firewall and can lead to a more secure policy. It's also easier to control other DNS related things as a result.
Reply With Quote
  #3 (permalink)  
Old 2006-10-04
Junior Member
 
Join Date: 2006-08-04
Location: Nashville, TN
Posts: 7
Rep Power: 0
joelmoses has an average reputation (10+)
Default Re: Blocking Dynamic DNS update attempts via FW-1 custom INSPECT

Thanks for the compliment!

That's a good point. It's not an optimal configuration to have anything other than a DNS cache to relay requests outside the network, but it's a configuration I know lots of places have (you can thank Microsoft for making AD so DNS-heavy and for lots of "appliance" hardware for requiring direct DNS access rather than using servers). Using UDP DNS protocol enforcement and some of the DNS security features in R60/61 makes things a bit more "safe".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 15:08.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0