12 - IP ACLs Flashcards
How many bytes in a UDP header?
8
How many bytes in a TCP header?
20
What port does DNS use?
Port 53
What IP ACLs only match on the Source IP?
Standard ACLs
What two points in a device are ACLs applied?
Either entering or exiting interface
What is the range for Standard numbered ACLs?
1 - 99
What is the range for Extended numbered ACLs?
100 - 199
What is the range for both Standard and Extended ‘Additional’ ACLs?
Standard: 1300-1999
Extended: 2000-2699
What is the difference between Numbered and Named ACLs with respect to configuration commands?
Numbered ACLs can be configured with Global commands
Named ACLs are configured with sub-commands
What statement is implicitly at the end of all ACLs?
Deny all
How would you configure a standard IP access list to allow a given subnet?
access-list 99 permit 10.1.1.0 0.0.0.255
How would you match any and all packets with an ACL command?
access-list 1 permit any
access-list 1 deny any
Why would you want to configure an explicit deny any rule?
So that you can see the counter for how many packets are matched by it, which is not possible using the implicit deny any rule
Where should standard ACLs be placed and why?
As close to the destination as possible so that they don’t unintentionally discard packets that shouldn’t be discarded
What command is used to actually enable the ACL on a chosen interface?
Interface subcommand:
ip access-group 99 in | out
How can you show a list of IPv4 ACLs?
show ip access-lists
How can you see ACLs active on a given interface?
show ip interface g0/0
What is the difference between the commands:show ip access-lists
andshow access-lists
The show access-lists
command also lists other types of ACLs such as IPv6 etc
True/False: Packets created by the router itself are filtered by ACLs
False.
A router does not filter packets it created itself with an Outbound ACL. E.g. routing protocol messages, ping packets, etc
How do you enable log messages for ACL statistics?
Append the log
directive to the end of ACL rule commands
access-list 2 permit 10.1.1.1 log
What are the 3 ‘matching’ parameters that extended ACL access-list commands require?
- Protocol Type
- Source IP
- Destination IP
What is a key difference between standard and extended ACLs when matching a specific IP address?
Extended ACLs require you to use the ‘host’ keyword
How do you use extended ACL access-list command only specifying the minimum required matching parameters?
access-list 101 permit tcp any 10.1.1.0 0.0.0.255
access-list 101 permit ip any any
What are all the possible port matching modifiers for extended ACLs?
eq ne lt gt range