You are connected to R1 via the console. An extended ACL named BLOCK_SMTP is applied inbound on interface GigabitEthernet0/1, which faces the 192.168.10.0/24 users. Users on that network cannot send email to the SMTP server at 203.0.113.10. Fix the ACL so that SMTP traffic (TCP port 25) from 192.168.10.0/24 to the SMTP server is permitted, all other SMTP traffic remains denied, and all other IP traffic is permitted. Select the correct ACL.
Hints
- •The ACL is applied inbound on G0/1, so the source is the internal network.
- •The current ACL denies all SMTP traffic; you need to permit SMTP from the specific source network to the SMTP server before the deny.
- •Remember to remove the old ACL and create a new one with the correct order of entries.
! R1 configure terminal no ip access-list extended BLOCK_SMTP ip access-list extended BLOCK_SMTP permit tcp 192.168.10.0 0.0.0.255 host 203.0.113.10 eq 25 deny tcp any any eq 25 permit ip any any end
Why this answer
ACLs are processed top-down and the first match wins. The permit for 192.168.10.0/24 to host 203.0.113.10 on TCP 25 must come first, followed by the deny for all other SMTP, and finally permit ip any any for everything else. Option B permits all SMTP first, so the deny is unreachable and all SMTP is allowed.
Option C denies all SMTP first, so the specific permit is never matched. Option D places permit ip any any before the deny, so the deny is never reached and all SMTP is allowed.
Exam trap
Remember that ACLs are processed sequentially; the first match wins. A common mistake is to place a general permit or deny before a specific statement, causing the specific statement to never be evaluated. Always order ACL entries from most specific to most general.
Why the other options are wrong
The first match wins: 'permit tcp any any eq 25' matches all SMTP before the more specific deny can be evaluated.
The deny any any matches all SMTP, so the subsequent permit for the specific source/destination is never reached.
The permit ip any any matches all traffic, so the subsequent deny for SMTP is never applied.