I'm trying to better understand the implicit deny at the end of access-lists on routers and how to best modify existing access lists. Using the example below. Lets say that I now want to allow Telnet from a specific IP (i.e., 149.54.11.5 ) to a specific IP (i.e., 172.16.1.10 )
access-list 101 deny tcp any any eq 161
access-list 101 deny tcp any any eq telnet
access-list 101 permit ip any any
Does that mean that If I simply entered the command >
access-list 101 permit tcp 149.54.11.5 172.16.1.10 eq Telnet
it would get appended after the >
access-list 101 deny tcp any any eq telnet
and subsequently not work?
Would that mean that to correctly "insert" this new line I would need to run the following command?
no access-list 101 permit ip any any
access-list 101 permit tcp 149.54.11.5 172.16.1.10 eq Telnet
access-list 101 permit ip any any
If this is correct, does that meant that immediately after I run >
no access-list 101 permit ip any any
all incoming traffic will be blocked until I re-enter >
access-list 101 permit ip any any
And to complete this I assume I would need to run an access-group command to bind the list to an interface?
Thanks!~
access-list 101 deny tcp any any eq 161
access-list 101 deny tcp any any eq telnet
access-list 101 permit ip any any
Does that mean that If I simply entered the command >
access-list 101 permit tcp 149.54.11.5 172.16.1.10 eq Telnet
it would get appended after the >
access-list 101 deny tcp any any eq telnet
and subsequently not work?
Would that mean that to correctly "insert" this new line I would need to run the following command?
no access-list 101 permit ip any any
access-list 101 permit tcp 149.54.11.5 172.16.1.10 eq Telnet
access-list 101 permit ip any any
If this is correct, does that meant that immediately after I run >
no access-list 101 permit ip any any
all incoming traffic will be blocked until I re-enter >
access-list 101 permit ip any any
And to complete this I assume I would need to run an access-group command to bind the list to an interface?
Thanks!~