A network engineer must configure an IPv4 extended access control list (ACL 105) on a Cisco IOS router to enforce security policies for traffic originating from the internal subnet () destined for an application server at :
1. Allow host administrative SSH access (TCP port 22) to server .
2. Prevent all other hosts in the subnet from accessing server via SSH.
3. Allow all hosts in the subnet web access (TCP port 80) to server .
4. Explicitly block all remaining IP traffic from to server .
In what order should the network engineer place the ACL statements from top to bottom to ensure the policy is correctly enforced?
- 1access-list 105 permit tcp host 10.1.1.50 host 10.2.2.10 eq 22
- 2access-list 105 deny tcp 10.1.1.0 0.0.0.255 host 10.2.2.10 eq 22
- 3access-list 105 permit tcp 10.1.1.0 0.0.0.255 host 10.2.2.10 eq 80
- 4access-list 105 deny ip 10.1.1.0 0.0.0.255 host 10.2.2.10
Cevap
The ACL statements must be placed from top to bottom in the sequence: 1) access-list 105 permit tcp host 10.1.1.50 host 10.2.2.10 eq 22, 2) access-list 105 deny tcp 10.1.1.0 0.0.0.255 host 10.2.2.10 eq 22, 3) access-list 105 permit tcp 10.1.1.0 0.0.0.255 host 10.2.2.10 eq 80, and 4) access-list 105 deny ip 10.1.1.0 0.0.0.255 host 10.2.2.10.
Cisco IOS Access Control Lists enforce policies based on top-down, first-match evaluation logic. Once a packet matches an ACL line's source, destination, protocol, and port criteria, the router executes the action (permit or deny) and ignores all subsequent entries. To properly allow host 10.1.1.50 to access SSH while denying SSH to the rest of the 10.1.1.0/24 subnet, the host permit rule must appear first. Next, the subnet SSH deny rule blocks all other SSH attempts. Following that, the HTTP permit rule allows web traffic for the subnet. Finally, the broad IP deny statement catches any remaining traffic types from the subnet.
Adım Adım Çözüm
Anahtar Kavram
Cisco IOS ACL Top-Down Sequential First-Match Processing