12-17-2015
02:35 PM
- last edited on
03-25-2019
05:57 PM
by
ciscomoderator
hello all-
i am trying to find some information how can i create a firewall rule to only allow DNS (TCP/UDP) so ports 443/53 UDP are open to 208.67.222.222. i want to allow TCP/UDP IN/OUT to 208.67.222.222 or 208.67.220.220. any help would be greatly appreciated.
thanks
Solved! Go to Solution.
12-17-2015 03:57 PM
Hi Alexa,
The ASA is a stateful firewall which means it will keep a connection table and permit the traffic initiated from a higher security level to a lower security level. For example the traffic initiated from the inside network to outside ( internet) will be allowed.
If the DNS request or connection is generated from outside to inside from this servers, you can try the following config:
access-list Out_ACL permit udp 208.67.222.222 any 53
access-list Out_ACL permit udp 208.67.222.220 any 53
access-group Out_ACL outside in
Hope it helps
-Randy-
12-17-2015 11:46 PM
hi,
just to add randy's post, if you're doing DNS zone transfer, you may want add DNS TCP port 53.
there's also an ACL implicit deny so you may want to add a line to permit other traffic.
access-list Out_ACL permit tcp 208.67.222.222 any domain
access-list Out_ACL permit tcp 208.67.222.220 any domain
access-list Out_ACL extended deny tcp any any eq domain
access-list Out_ACL extended deny udp any any eq domain
access-list Out_ACL permit ip any any
12-17-2015 03:57 PM
Hi Alexa,
The ASA is a stateful firewall which means it will keep a connection table and permit the traffic initiated from a higher security level to a lower security level. For example the traffic initiated from the inside network to outside ( internet) will be allowed.
If the DNS request or connection is generated from outside to inside from this servers, you can try the following config:
access-list Out_ACL permit udp 208.67.222.222 any 53
access-list Out_ACL permit udp 208.67.222.220 any 53
access-group Out_ACL outside in
Hope it helps
-Randy-
12-17-2015 11:46 PM
hi,
just to add randy's post, if you're doing DNS zone transfer, you may want add DNS TCP port 53.
there's also an ACL implicit deny so you may want to add a line to permit other traffic.
access-list Out_ACL permit tcp 208.67.222.222 any domain
access-list Out_ACL permit tcp 208.67.222.220 any domain
access-list Out_ACL extended deny tcp any any eq domain
access-list Out_ACL extended deny udp any any eq domain
access-list Out_ACL permit ip any any
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide