Infrastructure Security

A subnet's inbound network ACL has rule 100 allowing all traffic from 10.0.0.0/8 and rule 200 denying TCP port 22 from 10.20.0.0/16. SSH from 10.20.1.10 still succeeds; which change blocks it while preserving the broader allow?

Show the answer

Correct answerA. Change the deny rule number to 90.

AWhy this is right: Rule 90 denies the specified SSH traffic before rule 100 permits the broader address range.

BWhy not this: SSH responses target the client's ephemeral port, not destination port 22.

CWhy not this: The default deny rule cannot be modified and is evaluated only when no numbered rule matches.

DWhy not this: Rule 100 would still match first, so the connection would remain allowed.

Network ACLs evaluate rules in ascending numerical order and apply the first match. Moving the specific deny to rule 90 makes it precede the broad allow; moving it to rule 300 leaves the allow as the first match.