Newest Downloads

Mar.18

  [zenoss@zenoss2 ~]$ python Zenoss_Template_Manager.py -husage: Examples: python Zenoss_Templa...

Restricting Telnet Access To/From a Cisco Router/Switch
Networking HowTo's - Cisco HowTo's
Written by Keith Short   
Sunday, 27 April 2008 12:24

This simple setup has two components:

1) An Access List that defines source and destination IP addresses for the session
2) The command under the vty lines that references the Access List

In the examples below the router IP Address is 192.168.1.1

Example (Telnet to Router/Switch):

access-list 100 remark allow hosts on the 192.168.1.0/24 network to telnet to the router/switch
access-list 100 permit tcp 192.168.1.0 0.0.0.255 host 192.168.1.1 eq 23

line vty 0 4
access-class 100 in

Example (Telnet from Router/Switch):

access-list 101 remark allow the router/switch to telnet to hosts on the 192.168.1.0/24 network
access-list 101 permit tcp host 192.168.1.1 192.168.1.0 0.0.0.255 eq 23

line vty 0 4
access-class 101 out

The inbound and and outbound access can be combined as follows:

line vty 0 4
access-list 100 in
access-list 101 out





Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
Comments
Search RSS
Only registered users can write comments!

3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Saturday, 17 May 2008 21:55