10-12-2020 07:57 PM
Hi guys,
I've created this access list on my switch C9300 for testing:
ip access-list extended My_RDP
10 permit tcp any range 3389 3390 any
20 permit udp any range 3389 3900 any
30 permit ip any any
And then apply this ACL above to my interface g1/0/1
ip access-group My_RDP in
I can RDP to the PC which connected to this interface g1/0/1 from other PC just fine but when i do 'show ip access-list My_RDP' on my switch I don't see any packet matched, did I do something wrong here?
Thanks!
10-12-2020 08:32 PM
I've added this into the ACL 'My_RDP':
5 deny icmp any any log
And the result as expected that I can't ping the PC which connected to interface g1/0/1 now but I still don't see any matched packet for the icmp deny from my acl either. Was my acl wrong?
10-13-2020 12:44 AM - edited 10-13-2020 12:54 AM
Hello
Access-list can be processed in either hardware (dedicated asics cards) or software (CPU) or the router/switch
On the 9300 there are most probably being hardware processed however when you enable the log or log-input keyword then the logging of the acl is usually is processed by the CPU of the router/switch, With you not seeing a hits on the acl it could be that the logging is being hardware processed however I wouldnt expect it to be - Curious have you tried the log-input keyword.
Editied- Please review this post ive come across its from two hall of famer's Rick and Jon - I think theyve explained better then I have
10-13-2020 02:07 AM
Hello,
check what results the command:
show platform software fed switch { switch_num | active | standby } acl counters hardware
renders.
10-13-2020 07:26 AM - edited 10-13-2020 07:27 AM
Thanks Guys!
I added 'log' at the end of 'deny icmp any any' so the my acl looks like this now:
ip access-list extended My_RDP
5 deny icmp any any log
10 permit tcp any range 3389 3390 any log
20 permit udp any range 3389 3900 any log
30 permit ip any any log
I've been sending some pings to that PC and getting icmp dropped. I ran the command below:
show platform software fed switch active acl counters hardware
Is this line where I'm supposed to see?:
Ingress IPv4 PACL Drop (0x5a000005): 152 frames
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide