02-19-2020 12:53 AM
Helo I have SW c3650. I've configured SSH, RSA Key and line VTY. AAA new model is already done.
Before I put ACL in VTY line I could reach my switch via ssh but when i put ACL i have network error.
i have create :
group object MGMT_GROUP
range x.x.x.x x.x.x.x - ip adresses of managament IP
next
I create ACL
ip access-list extended MGMT
permit tcp object-group MGMT_GROUP any eq 22 log-input
deny tcp any any range 0 65535 log-input
deny ip any any log-input
In VTY 0 4
access-class MGMT in
And my access via ssh is not working... when i put....no access-class MGMT I can connect my switch via ssh
Pease any sugestions ?
02-19-2020 01:25 AM
I see the example where extended ACL dont work as expected on line vty. I would suggest to have standard access list and just allow ssh.
access-list 11 permit x.x.x.x x.x.x.x
!
line vty 0 4
transport input ssh
access-class 11 in
!
Please rate for useful post
02-19-2020 03:18 AM
I've tried standard access list, such as group object maped to named acl and it doesnt work.
02-19-2020 05:47 AM - edited 02-19-2020 05:51 AM
Object-group doesn't support in in standard ACLs, you can add host or network subnet in standard ACL to filter VTY access, try following config example.
ip access-list standard VTY_ALLOW
permit 10.1.1.1
permit 10.2.1.0 0.0.0.127
line vty 0 15
transport input ssh
access-class VTY_ALLOW in
-Muhammad Zahid
02-19-2020 12:49 PM
I have tried standard acl and it doesnt work..... moreover my config works in Packet Tracer ...
02-21-2020 07:03 AM
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