I've seen some "practice" test questions out there relating to applying an access list on a router to prevent various types of access---telnet, ftp---to
all networks attached to a particular router. Here's the text of what they consider to be the right answer:
Cisco1>en
Password: cisco
Cisco1#show access-lists
Cisco1#config t
Enter configuration commands, one per line. End with END.
Cisco1(config)#access-list 101 deny tcp any 192.168.32.1 0.0.0.0 eq 23
Cisco1(config)#access-list 101 deny tcp any 192.168.63.1 0.0.0.0 eq 23
Now, I don't think the wildcard mask is correct. Note that its set to match all the bits for the IP addresses of the 2 router interfaces. This seems to me that you're just blocking access to those ports, but what about other devices on the network with addresses other than for example 192.168.63.1? If you had 192.168.63.2 or .3 or .4 you'd still have access through the router, right? So the correct wildcard mask should be 0.0.0.255?
I tested this setup on my router simulator and this is exactly what I got. Can someone else provide a second opinion and tell me what's right or wrong here? Thanks!