- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 04:16 PM
Hello experts, I have a question about ACL.
I have configured the first requirement like below on both R1 and R2.
!
access-list 101 deny tcp 192.168.2.0 0.0.0.255 host 192.168.1.3 eq www
!
Though it works, I found that my PC in 192.168.3.0 network could not ping 192.168.1.0 network either.
Is there something I miss?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 04:45 PM - edited 04-22-2020 04:57 PM
do you have permit ip any any ?
each ACL has impicit deny at the end of ACL; Such entry is not visible normally. therefore, you need permit any Or permit ip any any Or specific network/host. i,e permit icmp any any to ping , in your example, you may see access-list 101 deny ip any any as last entry.
if you want to ping or allow other traffic, add access-list 101 permit ip any any
Regards, ML
**Please Rate All Helpful Responses **
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 09:17 PM
Yes, ACL order is from top to the bottom but it can stop once the match is found. In your case, you have 3 lines, line 3 is never read because line 2 will match all traffic (everything). router will never get to line 3. you have to re-arrange order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 04:45 PM - edited 04-22-2020 04:57 PM
do you have permit ip any any ?
each ACL has impicit deny at the end of ACL; Such entry is not visible normally. therefore, you need permit any Or permit ip any any Or specific network/host. i,e permit icmp any any to ping , in your example, you may see access-list 101 deny ip any any as last entry.
if you want to ping or allow other traffic, add access-list 101 permit ip any any
Regards, ML
**Please Rate All Helpful Responses **
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 08:14 PM
It works well.
Does ACL execute the access-list in order?
It seems everything after "permit ip any any" will be ignore, isn`t it? (I still can access the ftp server.)
!
ip access-group 101 out
access-list 101 deny tcp 192.168.2.0 0.0.0.255 host 192.168.1.3 eq www
access-list 101 permit ip any any
access-list 101 deny tcp 192.168.3.0 0.0.0.255 host 192.168.1.4 eq ftp
!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 09:17 PM
Yes, ACL order is from top to the bottom but it can stop once the match is found. In your case, you have 3 lines, line 3 is never read because line 2 will match all traffic (everything). router will never get to line 3. you have to re-arrange order.
