﻿{"id":440,"date":"2011-11-12T17:39:19","date_gmt":"2011-11-12T09:39:19","guid":{"rendered":"http:\/\/notes.zerobox.org\/?p=440"},"modified":"2011-11-18T16:18:23","modified_gmt":"2011-11-18T08:18:23","slug":"%e6%80%9d%e7%a7%91%e8%b7%af%e7%94%b1%e5%99%a8%e5%ae%89%e5%85%a8%e5%8a%a0%e5%9b%ba%e6%96%b9%e6%a1%88%ef%bc%88%e5%8d%97%e6%96%b9%e7%94%b5%e7%bd%91%e9%a2%84%e5%ae%9e%e6%96%bd%e6%96%b9%e6%a1%88%ef%bc%89","status":"publish","type":"post","link":"http:\/\/zerobox.org\/notes\/440.html","title":{"rendered":"\u601d\u79d1\u8def\u7531\u5668\u5b89\u5168\u52a0\u56fa\u65b9\u6848\uff08\u5357\u65b9\u7535\u7f51\u9884\u5b9e\u65bd\u65b9\u6848\uff09"},"content":{"rendered":"<p>http:\/\/www.youxia.org\/2011\/08\/Route-JiaGu.html<\/p>\n<p>\u4e00\u3001 \u63a7\u5236\u5c42\u9762\u4e3b\u8981\u5b89\u5168\u5a01\u534f\u4e0e\u5e94\u5bf9\u539f\u5219<\/p>\n<p>\u7f51\u7edc\u8bbe\u5907\u7684\u63a7\u5236\u5c42\u9762\u7684\u5b9e\u8d28\u8fd8\u662f\u8fd0\u884c\u7684\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u65e2\u7136\u662f\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u90a3\u4e48\uff0c\u5176\u5b83\u64cd\u4f5c\u7cfb\u7edf\u53ef\u80fd\u9047\u5230\u7684\u5b89\u5168\u5a01\u80c1\u7f51\u7edc\u8bbe\u5907\u90fd\u6709\u53ef\u80fd\u9047\u5230\uff1b\u603b\u7ed3\u8d77\u6765\u6709\u5982\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n<p>1\u3001 \u7cfb\u7edf\u81ea\u8eab\u7684\u7f3a\u9677\uff1a\u64cd\u4f5c\u7cfb\u7edf\u4f5c\u4e3a\u4e00\u4e2a\u590d\u6742\u7cfb\u7edf\uff0c\u4e0d\u8bba\u5728\u53d1\u5e03\u4e4b\u524d\u591a\u4e48\u4ed4\u7ec6\u7684\u8fdb\u884c\u6d4b\u8bd5\uff0c\u603b\u4f1a\u6709\u7f3a\u9677\u4ea7\u751f\u7684\u3002\u51fa\u73b0\u7f3a\u9677\u540e\u7684\u552f\u4e00\u529e\u6cd5\u5c31\u662f\u5c3d\u5feb\u7ed9\u7cfb\u7edf\u8981\u4e0a\u8865\u4e01\u3002 Cisco IOS\/Catos\u4e0e\u5176\u5b83\u901a\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u533a\u522b\u5728\u4e8e\uff0cIOS\/Catos\u9700\u8981\u5c06\u6574\u4e2a\u7cfb\u7edf\u66f4\u6362\u4e3a\u6253\u8fc7\u8865\u4e01\u7684\u7cfb\u7edf\uff0c\u53ef\u4ee5\u67e5\u8be2http: \/\/www.cisco.com\/en\/US\/customer\/products\/prod_security_advisories_list.html \u53d6\u5f97cisco\u6700\u65b0\u7684\u5b89\u5168\u516c\u544a\u4fe1\u606f\u4e0e\u8865\u4e01\u4fe1\u606f\u3002<\/p>\n<p>2\u3001 \u7cfb\u7edf\u7f3a\u7701\u670d\u52a1\uff1a\u4e0e\u5927\u591a\u6570\u80fd\u7528\u64cd\u4f5c\u7cfb\u7edf\u4e00\u6837\uff0cIOS\u4e0eCatOS\u7f3a\u7701\u60c5\u51b5\u4e0b\u4e5f\u5f00\u4e86\u4e00\u5927\u5806\u670d\u52a1\uff0c\u8fd9\u4e9b\u670d\u52a1\u53ef\u80fd\u4f1a\u5f15\u8d77\u6f5c\u5728\u7684\u5b89\u5168\u98ce\u9669\uff0c\u89e3\u51b3\u7684\u529e\u6cd5\u662f\u6309\u6700\u5c0f\u7279\u6743\u539f\u5219\uff0c\u5173\u95ed\u8fd9\u4e9b\u4e0d\u9700\u8981\u7684\u670d\u52a1\u3002<\/p>\n<p>3\u3001 \u5f31\u5bc6\u7801\u4e0e\u660e\u6587\u5bc6\u7801\uff1a\u5728IOS\u4e2d\uff0c\u7279\u6743\u5bc6\u7801\u7684\u52a0\u5bc6\u65b9\u5f0f\u5f3a\u52a0\u5bc6\u6709\u5f31\u52a0\u5bc6\u4e24\u79cd\uff0c\u800c\u666e\u901a\u5b58\u53d6\u5bc6\u7801\u5728\u7f3a\u7701\u60c5\u51b5\u4e0b\u5219\u662f\u660e\u6587\uff1b<\/p>\n<p>4\u3001 \u975e\u6388\u6743\u7528\u6237\u53ef\u4ee5\u7ba1\u7406\u8bbe\u5907\uff1a\u65e2\u53ef\u4ee5\u901a\u8fc7telnet\\snmp\u901a\u8fc7\u7f51\u7edc\u5bf9\u8bbe\u5907\u8fdb\u884c\u5e26\u5185\u7ba1\u7406\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7console\u4e0eaux\u53e3\u5bf9\u8bbe\u5907\u8fdb\u884c\u5e26\u5916\u7ba1\u7406\u3002\u7f3a\u7701\u60c5\u51b5\u4e0b\u5e26\u5916\u7ba1\u7406\u662f\u6ca1\u6709\u5bc6\u7801\u9650\u5236\u7684\u3002\u9690\u542b\u8f83\u5927\u7684\u5b89\u5168\u98ce\u9669\uff1b<\/p>\n<p>5\u3001 CDP\u534f\u8bae\u9020\u6210\u8bbe\u5907\u4fe1\u606f\u7684\u6cc4\u6f0f\uff1b<\/p>\n<p>6\u3001 DDOS\u653b\u51fb\u5bfc\u81f4\u8bbe\u5907\u4e0d\u80fd\u6b63\u5e38\u8fd0\u884c\uff0c\u89e3\u51b3\u65b9\u6848\uff0c\u4f7f\u7528\u63a7\u5236\u9762\u7b56\u7565\uff0c\u9650\u5236\u5230\u63a7\u5236\u5c42\u9762\u7684\u6d41\u91cf\uff1b<\/p>\n<p>7\u3001 \u53d1\u751f\u5b89\u5168\u98ce\u9669\u4e4b\u540e\uff0c\u7f3a\u7701\u5ba1\u8ba1\u529f\u80fd\u3002<\/p>\n<p>\u4e8c\u3001 Cisco IOS\u52a0\u56fa<\/p>\n<p>\u5bf9\u4e8e12.3(4)T\u4e4b\u540e\u7684IOS\u7248\u672c\uff0c\u53ef\u4ee5\u901a\u8fc7autosecure\u547d\u4ee4\u5b8c\u6210\u4e0b\u8ff0\u5927\u591a\u6570\u529f\u80fd\uff0c\u8003\u8651\u5230\u5927\u90e8\u5206\u7528\u6237\u8fd8\u6ca1\u6709\u6761\u4ef6\u5347\u7ea7\u5230\u8be5IOS\u7248\u672c\uff0c\u8fd9\u91cc\u4ecd\u7136\u5217\u51fa\u9700\u8981\u4f7f\u7528\u5230\u7684\u547d\u4ee4\u884c\uff1a<\/p>\n<p>1\u3001\u7981\u7528\u4e0d\u9700\u8981\u7684\u670d\u52a1\uff1a<br \/>\nno ip http server\u3000\u3000 \/\/\u7981\u7528http server\uff0c\u8fd9\u73a9\u610f\u513f\u7684\u5b89\u5168\u6f0f\u6d1e\u5f88\u591a\u7684<br \/>\nno ip source-route\u3000\u3000 \/\/\u7981\u7528IP\u6e90\u8def\u7531\uff0c\u9632\u6b62\u8def\u7531\u6b3a\u9a97<br \/>\nno service finger \/\/\u7981\u7528finger\u670d\u52a1<br \/>\nno ip bootp server\u3000\u3000\u3000\/\/\u7981\u7528bootp\u670d\u52a1<br \/>\nno service udp-small-s \/\/\u5c0f\u7684udp\u670d\u52a1<br \/>\nno service tcp-small-s \/\/\u7981\u7528\u5c0f\u7684tcp\u670d\u52a1<\/p>\n<p>2\u3001\u5173\u95edCDP<br \/>\nno cdp run \/\/\u7981\u7528cdp<\/p>\n<p>3\u3001\u914d\u7f6e\u5f3a\u52a0\u5bc6\u4e0e\u542f\u7528\u5bc6\u7801\u52a0\u5bc6\uff1a<br \/>\nservice password-encryption\u3000\/\/\u542f\u7528\u52a0\u5bc6\u670d\u52a1\uff0c\u5c06\u5bf9password\u5bc6\u7801\u8fdb\u884c\u52a0\u5bc6<br \/>\nenable secret asdfajkls\u3000\u3000\u3000\/\/\u914d\u7f6e\u5f3a\u52a0\u5bc6\u7684\u7279\u6743\u5bc6\u7801<br \/>\nno enable password\u3000\u3000\u3000\u3000\u3000 \/\/\u7981\u7528\u5f31\u52a0\u5bc6\u7684\u7279\u6743\u5bc6\u7801<\/p>\n<p>4\u3001\u914d\u7f6elog server\u3001\u65f6\u95f4\u670d\u52a1\u53ca\u4e0e\u7528\u4e8e\u5e26\u5185\u7ba1\u7406\u7684ACL\u7b49\uff0c\u4fbf\u4e8e\u8fdb\u884c\u5b89\u5168\u5ba1\u8ba1<br \/>\nservice timestamp log datetime localtime \/\/\u914d\u7f6e\u65f6\u95f4\u6233\u4e3adatetime\u65b9\u5f0f\uff0c\u4f7f\u7528\u672c\u5730\u65f6\u95f4<br \/>\nlogging 192.168.0.1 \/\/\u5411192.168.0.1\u53d1\u9001log<br \/>\nlogging 192.168.0.2 \/\/\u5411192.168.0.2\u53d1\u9001log<br \/>\naccess-list 98\u7684\u4e3b\u673a\u8fdb\u884c\u901a\u8baf<br \/>\nno access-list 99 \/\/\u5728\u914d\u7f6e\u4e00\u4e2a\u65b0\u7684acl\u524d\u5148\u6e05\u7a7a\u8be5ACL<br \/>\naccess-list 99 permit 192.168.0.0 0.0.0.255<br \/>\naccess-list 99 deny any log \/\/log\u53c2\u6570\u8bf4\u660e\u5728\u6709\u7b26\u5408\u8be5\u6761\u4ef6\u7684\u6761\u76ee\u65f6\u4ea7\u751f\u4e00\u6761logo\u4fe1\u606f<br \/>\nno access-list 98 \/\/\u5728\u914d\u7f6e\u4e00\u4e2a\u65b0\u7684acl\u524d\u5148\u6e05\u7a7a\u8be5ACL<br \/>\naccess-list 98 permit host 192.168.0.1<br \/>\naccess-list 98 deny any log \/\/log\u53c2\u6570\u8bf4\u660e\u5728\u6709\u7b26\u5408\u8be5\u6761\u4ef6\u7684\u6761\u76ee\u65f6\u4ea7\u751f\u4e00\u6761logo\u4fe1\u606f<br \/>\n!<br \/>\nclock timezone PST-8 \/\/\u8bbe\u7f6e\u65f6\u533a<br \/>\nntp authenticate\u3000\u3000\u3000\u3000\u3000\u3000 \/\/\u542f\u7528NTP\u8ba4\u8bc1<br \/>\nntp authentication-key 1 md5 uadsf \/\/\u8bbe\u7f6eNTP\u8ba4\u8bc1\u7528\u7684\u5bc6\u7801\uff0c\u4f7f\u7528MD5\u52a0\u5bc6\u3002\u9700\u8981\u548cntp server\u4e00\u81f4<br \/>\nntp trusted-key 1\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\/\/\u53ef\u4ee5\u4fe1\u4efb\u7684Key.<br \/>\nntp acess-group peer 98 \/\/\u8bbe\u7f6entp\u670d\u52a1\uff0c\u53ea\u5141\u8bb8\u5bf9\u7aef\u4e3a\u7b26\u5408access-list 98\u6761\u4ef6\u7684\u4e3b\u673a<br \/>\nntp server 192.168.0.1 key 1\u3000\u3000\u3000\u3000 \/\/\u914d\u7f6entp server\uff0cserver\u4e3a192.168.0.1\uff0c\u4f7f\u75281\u53f7key\u505a\u4e3a\u5bc6\u7801<\/p>\n<p>5\u3001\u5bf9\u5e26\u5185\u7ba1\u7406\u884c\u4e3a\u8fdb\u884c\u9650\u5236\uff1a<br \/>\nsnmp-server community HSDxdf ro 98\/\/\u914d\u7f6esnmp\u53ea\u8bfb\u901a\u8baf\u5b57\uff0c\u5e76\u53ea\u5141\u8bb8access-list 98\u7684\u4e3b\u673a\u8fdb\u884c\u901a\u8baf<br \/>\nline vty 0 4<br \/>\naccess-class 99 in \/\/\u4f7f\u7528acl 99\u6765\u63a7\u5236telnet\u7684\u6e90\u5730\u5740<br \/>\nlogin<br \/>\npassword 0 asdfaksdlf\u3000\u3000\u3000\u3000\/\/\u914d\u7f6etelnet\u5bc6\u7801<br \/>\nexec-timeout 2 0\u3000\u3000\u3000\u3000\u3000\u3000 \/\/\u914d\u7f6e\u865a\u7ec8\u7aef\u8d85\u65f6\u53c2\u6570\uff0c\u8fd9\u91cc\u662f2\u5206\u949f<br \/>\n!<\/p>\n<p>6\u3001\u5bf9\u5e26\u5916\u7ba1\u7406\u884c\u4e3a\u8fdb\u884c\u9650\u5236\uff1a<br \/>\nline con 0<br \/>\nlogin<br \/>\npassword 0 adsfoii \/\/\u914d\u7f6econsole\u53e3\u7684\u5bc6\u7801<br \/>\nexec-timeout 2 0\u3000\u3000\u3000\u3000\u3000\u3000 \/\/\u914d\u7f6econsole\u53e3\u8d85\u65f6\u53c2\u6570\uff0c\u8fd9\u91cc\u662f\u4e24\u5206\u949f<br \/>\n!<br \/>\nline aux 0<br \/>\ntransport input none<br \/>\npassword 0 asfdkalsfj<br \/>\nno exec<br \/>\nexit<\/p>\n<p>7\u3001\u5e94\u7528control-plane police\uff0c\u9884\u9632DDOS\u653b\u51fb(\u6ce8\uff1a\u9700\u898112.2(18)S\u621612.3(4)T\u4ee5\u4e0a\u7248\u672c\u624d\u652f\u6301)<br \/>\n\u5141\u8bb8\u4fe1\u4efb\u4e3b\u673a(\u5305\u62ec\u5176\u5b83\u7f51\u7edc\u8bbe\u5907\u3001\u7ba1\u7406\u5de5\u4f5c\u7ad9\u7b49)\u6765\u7684\u6d41\u91cf:<br \/>\naccess-list 110 deny ip host 1.1.1.1 any<br \/>\naccess-list 110 deny ip 2.2.2.0 255.255.255.0 any<br \/>\n&#8230;..<br \/>\naccess-list 110 deny ip 3.3.3.3 any<br \/>\n\u9650\u5236\u6240\u6709\u5176\u5b83\u6d41\u91cf<br \/>\naccess-list 110 permit ip any any<br \/>\n!<br \/>\nclass-map control-plane-limit<br \/>\nmatch access-group 110<br \/>\n!<br \/>\npolicy-map control-plane-policy<br \/>\nclass control-plane-limit<br \/>\npolice 32000 conform transmit exceed drop<br \/>\n!<br \/>\ncontrol-plane<br \/>\nservice-policy input control-plane-policy<\/p>\n<p>\u4e09\u3001 Cisco CatOS\u52a0\u56fa<\/p>\n<p>1\u3001 \u7981\u7528\u4e0d\u9700\u8981\u7684\u670d\u52a1\uff1a<br \/>\nset cdp disable \/\/\u7981\u7528cdp<br \/>\nset ip http disable \u3000\u3000 \/\/\u7981\u7528http server\uff0c\u8fd9\u73a9\u610f\u513f\u7684\u5b89\u5168\u6f0f\u6d1e\u5f88\u591a\u7684<\/p>\n<p>2\u3001 \u914d\u7f6e\u65f6\u95f4\u53ca\u65e5\u5fd7\u53c2\u6570\uff0c\u4fbf\u4e8e\u8fdb\u884c\u5b89\u5168\u5ba1\u8ba1\uff1a<br \/>\nset logging timestamp enable \/\/\u542f\u7528log\u65f6\u95f4\u6233<br \/>\nset logging server 192.168.0.1 \/\/\u5411192.168.0.1\u53d1\u9001log<br \/>\nset logging server 192.168.0.2 \/\/\u5411192.168.0.2\u53d1\u9001log!<br \/>\nset timezone PST-8 \/\/\u8bbe\u7f6e\u65f6\u533a<br \/>\nset ntp authenticate enable\u3000\u3000\u3000\u3000\u3000\u3000 \/\/\u542f\u7528NTP\u8ba4\u8bc1<br \/>\nset ntp key 1 md5 uadsf \/\/\u8bbe\u7f6eNTP\u8ba4\u8bc1\u7528\u7684\u5bc6\u7801\uff0c\u4f7f\u7528MD5\u52a0\u5bc6\u3002\u9700\u8981\u548cntp server\u4e00\u81f4<br \/>\nset ntp server 192.168.0.1 key 1\u3000\/\/\u914d\u7f6entp server\uff0cserver\u4e3a192.168.0.1\uff0c\u4f7f\u75281\u53f7key\u505a\u4e3a\u5bc6\u7801<br \/>\nset ntp client enable \/\/\u542f\u7528ntp client<\/p>\n<p>3\u3001 \u9650\u5236\u5e26\u5185\u7ba1\u7406\uff1a<\/p>\n<p>set snmp community HSDxdf \/\/\u914d\u7f6esnmp\u53ea\u8bfb\u901a\u8baf\u5b57<br \/>\nset ip permit enable snmp \/\/\u542f\u7528snmp\u8bbf\u95ee\u63a7\u5236<br \/>\nset ip permit 192.168.0.1 snmp\u3000 \/\/\u5141\u8bb8192.168.0.1\u8fdb\u884csnmp\u8bbf\u95ee<br \/>\nset ip permit enable telnet \/\/\u542f\u7528telnet\u8bbf\u95ee\u63a7\u5236<br \/>\nset ip permit 192.168.0.1 telnet\u3000 \/\/\u5141\u8bb8192.168.0.1\u8fdb\u884ctelnet\u8bbf\u95ee<br \/>\nset password \/\/\u914d\u7f6etelnet\u5bc6\u7801<br \/>\nset enable \u3000 \u3000 \/\/\u914d\u7f6e\u7279\u6743\u5bc6\u7801<br \/>\nset logout 2 \u3000\u3000 \/\/\u914d\u7f6e\u8d85\u65f6\u53c2\u6570\uff0c2\u5206\u949f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.youxia.org\/2011\/08\/Route-JiaG &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/zerobox.org\/notes\/440.html\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[33,31,32],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","tag-33","tag-31","tag-32"],"views":890,"_links":{"self":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":0,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"wp:attachment":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}