05-10-2020 12:37 PM
I have configured access-list on my router where only DHCP, DNS, and web traffic is allowed no other traffic.
As I apply the Access-list to the sub-interface it rejects DNS but I can reach the web traffic through the Server IP address.
What can be the problem that it can't resolve domain names?
Commands on the router...
Extended IP access list 101
10 permit tcp 192.168.2.0 0.0.0.255 192.168.10.0 0.0.0.255 eq www
20 permit tcp 192.168.2.0 0.0.0.255 192.168.10.0 0.0.0.255 eq bootps
30 permit tcp 192.168.2.0 0.0.0.255 192.168.10.0 0.0.0.255 eq domain
40 deny ip any any
Interface g0/0.20
ip access-group 101 in
Solved! Go to Solution.
05-10-2020 12:50 PM
DNS also uses UDP protocol in additon to TCP. so, please try with another line of
permit udp any eq 53 any eq 53
Regards, ML
**Please Rate All Helpful Responses **
05-10-2020 12:50 PM
DNS also uses UDP protocol in additon to TCP. so, please try with another line of
permit udp any eq 53 any eq 53
Regards, ML
**Please Rate All Helpful Responses **
05-10-2020 12:50 PM
05-10-2020 02:46 PM - edited 05-10-2020 02:47 PM
Hi!
Thanks for the support, I appreciate it.
it solved the Domain resolution issue now I'm able to resolve domain names. But DHCP is still being blocked????
05-10-2020 03:26 PM
I think DHCP also needs 2 entries; bootps and bootpc
Please use ? anytime you forget numbers or option
Router(config-ext-nacl)#permit udp any eq ?
<0-65535> Port number
bootpc Bootstrap Protocol (BOOTP) client (68)
bootps Bootstrap Protocol (BOOTP) server (67)
Regards, ML
**Please Rate All Helpful Responses **
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