当前所在位置:珠峰网资料 >> 计算机 >> 计算机等级考试 >> 正文
计算机三级网络技术:路由器网络服务安全配置技巧
发布时间:2011/6/25 16:30:04 来源:城市学习网 编辑:admin
  1,禁止CDP(Cisco Discovery Protocol)。如:
  Router(Config)#no cdp run
  Router(Config-if)# no cdp enable
  2,禁止其他的TCP、UDP Small服务。
  Router(Config)# no service tcp-small-servers
  Router(Config)# no service udp-samll-servers
  3,禁止Finger服务。
  Router(Config)# no ip finger
  Router(Config)# no service finger
  4,建议禁止HTTP服务。
  Router(Config)# no ip http server
  如果启用了HTTP服务则需要对其进行安全配置:设置用户名和密码;采用访问列表进行控制。如:
  Router(Config)# username BluShin privilege 10 G00dPa55w0rd Router(Config)# ip http auth local Router(Config)# no access-list 10 Router(Config)# access-list 10 permit 192.168.0.1 Router(Config)# access-list 10 deny any Router(Config)# ip http access-class 10 Router(Config)# ip http server Router(Config)# exit
  5,禁止BOOTp服务。
  Router(Config)# no ip bootp server
  禁止从网络启动和自动从网络下载初始配置文件。
  Router(Config)# no boot network
  Router(Config)# no servic config
  6,禁止IP Source Routing。
  Router(Config)# no ip source-route
  7,建议如果不需要ARP-Proxy服务则禁止它,路由器默认识开启的。
  Router(Config)# no ip proxy-arp
  Router(Config-if)# no ip proxy-arp
  8,明确的禁止IP Directed Broadcast。
  Router(Config)# no ip directed-broadcast
  9,禁止IP Classless。
  Router(Config)# no ip classless
  10,禁止ICMP协议的IP Unreachables,Redirects,Mask ReplIEs。
  Router(Config-if)# no ip unreacheables
  Router(Config-if)# no ip redirects
  Router(Config-if)# no ip mask-reply
  11,建议禁止SNMP协议服务。在禁止时必须删除一些SNMP服务的默认配置。或者需要访问列表来过滤。如:
  Router(Config)# no snmp-server community public Ro Router(Config)# no snmp-server community admin RW Router(Config)# no access-list 70 Router(Config)# access-list 70 deny any Router(Config)# snmp-server community MoreHardPublic Ro 70 Router(Config)# no snmp-server enable traps Router(Config)# no snmp-server system-shutdown Router(Config)# no snmp-server trap-anth Router(Config)# no snmp-server Router(Config)# end
  12,如果没必要则禁止WINS和DNS服务。
  Router(Config)# no ip domain-lookup
  如果需要则需要配置:
  Router(Config)# hostname Router
  Router(Config)# ip name-server 202.102.134.96
  13,明确禁止不使用的端口。
  Router(Config)# interface eth0/3
  Router(Config)# shutdown
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved