Which ACL sequence permits only TCP destination ports 22–443 while excluding port 80?
Choose an answer
Tap an option to check your answer.
Correct answer: deny tcp any any eq 80 permit tcp any any range 22 443.
Why this is the answer
The correct answer deny tcp any any eq 80 permit tcp any any range 22 443 works because ACLs are processed sequentially from top to bottom. The first line explicitly denies TCP traffic on destination port 80. The second line then permits TCP traffic within the range of ports 22 to 443. Since port 80 was already denied by the first statement, it is effectively excluded from the permitted range. The option deny tcp any any eq 80 permit tcp any any gt 21 lt 444 is functionally similar but uses gt (greater than) and lt (less than) which can be less precise than range for a continuous block. The option permit tcp any any range 22 443 deny tcp any any eq 80 is incorrect because the permit statement for the range 22-443 would be processed first, allowing port 80 traffic before the deny statement for port 80 is ever reached. The option permit tcp any any eq 80 is incorrect as it only permits port 80, which is the opposite of the requirement.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed