Killing incomng TELNET Session
mercanedees
Member Posts: 10 ■□□□□□□□□□
in CCNA & CCENT
Does anyone know how to terminate a Telnet session coming into your Router?
Comments
-
wildfire Member Posts: 654Not sure what you mean by this question do you want to prevent people from telneting in or disconnect people that are already connected>
Easiest way to prevent telnet from coming in is by applying an access list
can be done one of two ways, to allow only you to telnet in from a known IP
Router(config)#access-list 50 permit {you IP address}
Router(config)#line vty 0 4 (applys the access list to 0-4 telent sessions)
Router(config-line)#access-class 50 in (notice this is different from applying to physicial interface)
or to deny any
Router(config)#access-list 120 deny tcp any any eq 23
Router(config)#access-list 120 permit ip any any
RouterA(config-if)#ip access-group 110 in
If you mean disconnect someone already connected, correct me on this anyone
Router#Show users
work out which line number is connected then
Router#disconnect {connection-number}Looking for CCIE lab study partnerts, in the UK or Online. -
mercanedees Member Posts: 10 ■□□□□□□□□□Yes, that is exactly what I mean. Terminating another user who is already connected to the router you are currently working on