You can use DNS inspection to block queries:
regex facebook.com ".*\.facebook\.com.*"
regex metasploit.com ".*\.metasploit\.com.*"
!
regex metasploit.com ".*\.metasploit\.com.*"
!
class-map type regex match-any domain_black_list
match regex facebook.com
match regex metasploit.com
!
match regex facebook.com
match regex metasploit.com
!
policy-map type inspect dns preset_dns_map
match domain-name regex class domain_black_list
drop-connection log
match domain-name regex class domain_black_list
drop-connection log
!
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
It's not the best solution for web filtering, but might be a good workaround.
asa(config)# end
asa# wr mem
thanks for this information..! There is more information about DNS Filtering here
ReplyDelete