{"id":280,"date":"2022-10-30T17:30:27","date_gmt":"2022-10-30T09:30:27","guid":{"rendered":"https:\/\/blog.taiyang.space\/?p=280"},"modified":"2022-11-01T13:00:54","modified_gmt":"2022-11-01T05:00:54","slug":"acl%e7%ae%80%e8%bf%b0","status":"publish","type":"post","link":"https:\/\/blog.taiyang.space\/?p=280","title":{"rendered":"ACL\u7b80\u8ff0"},"content":{"rendered":"<h2>ACL\u7b80\u4ecb<\/h2>\n<h3>\u5b9a\u4e49<\/h3>\n<p>\u8bbf\u95ee\u63a7\u5236\u5217\u8868ACL\uff08Access Control List\uff09\u662f\u7531\u4e00\u6761\u6216\u591a\u6761\u89c4\u5219\u7ec4\u6210\u7684\u96c6\u5408\u3002\u6240\u8c13\u89c4\u5219\uff0c\u662f\u6307\u63cf\u8ff0\u62a5\u6587\u5339\u914d\u6761\u4ef6\u7684\u5224\u65ad\u8bed\u53e5\uff0c\u8fd9\u4e9b\u6761\u4ef6\u53ef\u4ee5\u662f\u62a5\u6587\u7684\u6e90\u5730\u5740\u3001\u76ee\u7684\u5730\u5740\u3001\u7aef\u53e3\u53f7\u7b49\u3002<\/p>\n<p>ACL\u672c\u8d28\u4e0a\u662f\u4e00\u79cd\u62a5\u6587\u8fc7\u6ee4\u5668\uff0c\u89c4\u5219\u662f\u8fc7\u6ee4\u5668\u7684\u6ee4\u82af\u3002\u8bbe\u5907\u57fa\u4e8e\u8fd9\u4e9b\u89c4\u5219\u8fdb\u884c\u62a5\u6587\u5339\u914d\uff0c\u53ef\u4ee5\u8fc7\u6ee4\u51fa\u7279\u5b9a\u7684\u62a5\u6587\uff0c\u5e76\u6839\u636e\u5e94\u7528ACL\u7684\u4e1a\u52a1\u6a21\u5757\u7684\u5904\u7406\u7b56\u7565\u6765\u5141\u8bb8\u6216\u963b\u6b62\u8be5\u62a5\u6587\u901a\u8fc7\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u76ee\u7684<\/h3>\n<p>\u968f\u7740\u7f51\u7edc\u7684\u98de\u901f\u53d1\u5c55\uff0c\u7f51\u7edc\u5b89\u5168\u548c\u7f51\u7edc\u670d\u52a1\u8d28\u91cfQoS\uff08Quality of Service\uff09\u95ee\u9898\u65e5\u76ca\u7a81\u51fa\u3002<\/p>\n<ul>\n<li>\u4f01\u4e1a\u91cd\u8981\u670d\u52a1\u5668\u8d44\u6e90\u88ab\u968f\u610f\u8bbf\u95ee\uff0c\u4f01\u4e1a\u673a\u5bc6\u4fe1\u606f\u5bb9\u6613\u6cc4\u9732\uff0c\u9020\u6210\u5b89\u5168\u9690\u60a3\u3002<\/li>\n<li>Internet\u75c5\u6bd2\u8086\u610f\u4fb5\u7565\u4f01\u4e1a\u5185\u7f51\uff0c\u5185\u7f51\u73af\u5883\u7684\u5b89\u5168\u6027\u582a\u5fe7\u3002<\/li>\n<li>\u7f51\u7edc\u5e26\u5bbd\u88ab\u5404\u7c7b\u4e1a\u52a1\u968f\u610f\u6324\u5360\uff0c\u670d\u52a1\u8d28\u91cf\u8981\u6c42\u6700\u9ad8\u7684\u8bed\u97f3\u3001\u89c6\u9891\u4e1a\u52a1\u7684\u5e26\u5bbd\u5f97\u4e0d\u5230\u4fdd\u969c\uff0c\u9020\u6210\u7528\u6237\u4f53\u9a8c\u5dee\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u79cd\u79cd\u95ee\u9898\uff0c\u90fd\u5bf9\u6b63\u5e38\u7684\u7f51\u7edc\u901a\u4fe1\u9020\u6210\u4e86\u5f88\u5927\u7684\u5f71\u54cd\u3002\u56e0\u6b64\uff0c\u63d0\u9ad8\u7f51\u7edc\u5b89\u5168\u6027\u670d\u52a1\u8d28\u91cf\u8feb\u5728\u7709\u776b\u3002ACL\u5c31\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u5e94\u8fd0\u800c\u751f\u4e86\u3002<\/p>\n<p>\u901a\u8fc7ACL\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u7f51\u7edc\u4e2d\u62a5\u6587\u6d41\u7684\u7cbe\u786e\u8bc6\u522b\u548c\u63a7\u5236\uff0c\u8fbe\u5230\u63a7\u5236\u7f51\u7edc\u8bbf\u95ee\u884c\u4e3a\u3001\u9632\u6b62\u7f51\u7edc\u653b\u51fb\u548c\u63d0\u9ad8\u7f51\u7edc\u5e26\u5bbd\u5229\u7528\u7387\u7684\u76ee\u7684\uff0c\u4ece\u800c\u5207\u5b9e\u4fdd\u969c\u7f51\u7edc\u73af\u5883\u7684\u5b89\u5168\u6027\u548c\u7f51\u7edc\u670d\u52a1\u8d28\u91cf\u7684\u53ef\u9760\u6027\u3002<\/p>\n<p>\u4e0b\u56fe\u662f\u4e00\u4e2a\u5178\u578b\u7684ACL\u5e94\u7528\u7ec4\u7f51\u573a\u666f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202210301724036.png\" referrerpolicy=\"no-referrer\" alt=\"1667107413509-3380c13c-c441-413b-b133-96a245b03b5a\"><\/p>\n<ul>\n<li>\u67d0\u4f01\u4e1a\u4e3a\u4fdd\u8bc1\u8d22\u52a1\u6570\u636e\u5b89\u5168\uff0c\u7981\u6b62\u7814\u53d1\u90e8\u95e8\u8bbf\u95ee\u8d22\u52a1\u670d\u52a1\u5668\uff0c\u4f46\u603b\u88c1\u529e\u516c\u5ba4\u4e0d\u53d7\u9650\u5236\u3002\u5b9e\u73b0\u65b9\u5f0f\uff1a\u5728Interface 1\u7684\u5165\u65b9\u5411\u4e0a\u90e8\u7f72ACL\uff0c\u7981\u6b62\u7814\u53d1\u90e8\u95e8\u8bbf\u95ee\u8d22\u52a1\u670d\u52a1\u5668\u7684\u62a5\u6587\u901a\u8fc7\u3002Interface 2\u4e0a\u65e0\u9700\u90e8\u7f72ACL\uff0c\u603b\u88c1\u529e\u516c\u5ba4\u8bbf\u95ee\u8d22\u52a1\u670d\u52a1\u5668\u7684\u62a5\u6587\u9ed8\u8ba4\u5141\u8bb8\u901a\u8fc7\u3002<\/li>\n<li>\u4fdd\u62a4\u4f01\u4e1a\u5185\u7f51\u73af\u5883\u5b89\u5168\uff0c\u9632\u6b62Internet\u75c5\u6bd2\u5165\u4fb5\u3002\u5b9e\u73b0\u65b9\u5f0f\uff1a\u5728Interface 3\u7684\u5165\u65b9\u5411\u4e0a\u90e8\u7f72ACL\uff0c\u5c06\u75c5\u6bd2\u7ecf\u5e38\u4f7f\u7528\u7684\u7aef\u53e3\u4e88\u4ee5\u5c01\u5835\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>ACL\u57fa\u672c\u539f\u7406<\/h2>\n<p>ACL\u7531\u4e00\u7cfb\u5217\u89c4\u5219\u7ec4\u6210\uff0c\u901a\u8fc7\u5c06\u62a5\u6587\u4e0eACL\u89c4\u5219\u8fdb\u884c\u5339\u914d\uff0c\u8bbe\u5907\u53ef\u4ee5\u8fc7\u6ee4\u51fa\u7279\u5b9a\u7684\u62a5\u6587\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>ACL\u7ec4\u6210<\/h3>\n<p>\u4e00\u6761ACL\u7684\u7ed3\u6784\u7ec4\u6210\uff0c\u5982\u4e0b\u56fe1-2\u6240\u793a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202210301724436.png\" referrerpolicy=\"no-referrer\" alt=\"1667107503799-11035753-fec5-415d-94cf-a1ef083595c3\"><\/p>\n<h4>ACL\u7f16\u53f7<\/h4>\n<p>\u7528\u4e8e\u6807\u8bc6ACL\uff0c\u8868\u660e\u8be5ACL\u662f\u6570\u5b57\u578bACL\u3002\u6839\u636eACL\u89c4\u5219\u529f\u80fd\u7684\u4e0d\u540c\uff0cACL\u88ab\u5212\u5206\u4e3a\u57fa\u672cACL\u3001\u9ad8\u7ea7ACL\u3001\u4e8c\u5c42ACL\u548c\u7528\u6237ACL\u8fd9\u51e0\u79cd\u7c7b\u578b\uff0c\u6bcf\u7c7bACL\u7f16\u53f7\u7684\u53d6\u503c\u8303\u56f4\u4e0d\u540c\u3002\u5173\u4e8e\u6bcf\u7c7bACL\u7f16\u53f7\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u8bf7\u53c2\u89c1ACL\u7684\u5206\u7c7b<\/p>\n<p>\u9664\u4e86\u53ef\u4ee5\u901a\u8fc7ACL\u7f16\u53f7\u6807\u8bc6ACL\uff0c\u8bbe\u5907\u8fd8\u652f\u6301\u901a\u8fc7\u540d\u79f0\u6765\u6807\u8bc6ACL\uff0c\u5c31\u50cf\u7528\u57df\u540d\u4ee3\u66ffIP\u5730\u5740\u4e00\u6837\uff0c\u66f4\u52a0\u65b9\u4fbf\u8bb0\u5fc6\u3002\u8fd9\u79cdACL\uff0c\u79f0\u4e3a\u547d\u540d\u578bACL\u3002<\/p>\n<p>\u547d\u540d\u578bACL\u5b9e\u9645\u4e0a\u662f\u201c\u540d\u5b57+\u6570\u5b57\u201d\u7684\u5f62\u5f0f\uff0c\u53ef\u4ee5\u5728\u5b9a\u4e49\u547d\u540d\u578bACL\u65f6\u540c\u65f6\u6307\u5b9aACL\u7f16\u53f7\u3002\u5982\u679c\u4e0d<\/p>\n<p>\u5b9a\u7f16\u53f7\uff0c\u5219\u7531\u7cfb\u7edf\u81ea\u52a8\u5206\u914d\u3002\u4f8b\u5982\uff0c\u4e0b\u9762\u5c31\u662f\u4e00\u4e2a\u65e2\u6709\u540d\u5b57\u201cdeny-telnet-login\u201d\u53c8\u6709\u7f16\u201c3998\u201d\u7684ACL\u3002<\/p>\n<pre><code>#                                                                                \nacl name deny-telnet-login 3998                                                  \n rule 0 deny tcp source 10.152.0.0 0.0.63.255 destination 10.64.0.97 0 destination-port eq telnet                                                                \n rule 5 deny tcp source 10.242.128.0 0.0.127.255 destination 10.64.0.97 0 destination-port eq telnet                                                             \n#           \n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u89c4\u5219<\/h4>\n<p>\u5373\u63cf\u8ff0\u62a5\u6587\u5339\u914d\u6761\u4ef6\u7684\u5224\u65ad\u8bed\u53e5\u3002<\/p>\n<ul>\n<li><strong>\u89c4\u5219\u7f16\u53f7<\/strong>\uff1a\u7528\u4e8e\u6807\u8bc6ACL\u89c4\u5219\u3002\u53ef\u4ee5\u81ea\u884c\u914d\u7f6e\u89c4\u5219\u7f16\u53f7\uff0c\u4e5f\u53ef\u4ee5\u7531\u7cfb\u7edf\u81ea\u52a8\u5206\u914d\u3002ACL\u89c4\u5219\u7684\u7f16\u53f7\u8303\u56f4\u662f0\uff5e4294967294\uff0c\u6240\u6709\u89c4\u5219\u5747\u6309\u7167\u89c4\u5219\u7f16\u53f7\u4ece\u5c0f\u5230\u5927\u8fdb\u884c\u6392\u5e8f\u3002\u6240\u4ee5\uff0c\u56fe1-2\u4e2d\u7684rule 5\u6392\u5728\u9996\u4f4d\uff0c\u800c\u89c4\u5219\u7f16\u53f7\u6700\u5927\u7684rule 4294967294\u6392\u5728\u672b\u4f4d\u3002\u7cfb\u7edf\u6309\u7167\u89c4\u5219\u7f16\u53f7\u4ece\u5c0f\u5230\u5927\u7684\u987a\u5e8f\uff0c\u5c06\u89c4\u5219\u4f9d\u6b21\u4e0e\u62a5\u6587\u5339\u914d\uff0c\u4e00\u65e6\u5339\u914d\u4e0a\u4e00\u6761\u89c4\u5219\u5373\u505c\u6b62\u5339\u914d\u3002<\/li>\n<li><strong>\u52a8\u4f5c<\/strong>\uff1a\u5305\u62ecpermit\/deny\u4e24\u79cd\u52a8\u4f5c\uff0c\u8868\u793a\u5141\u8bb8\/\u62d2\u7edd\u3002<\/li>\n<li><strong>\u5339\u914d\u9879<\/strong>\uff1aACL\u5b9a\u4e49\u4e86\u6781\u5176\u4e30\u5bcc\u7684\u5339\u914d\u9879\u3002\u9664\u4e86\u56fe1-2\u4e2d\u7684\u6e90\u5730\u5740\u548c\u751f\u6548\u65f6\u95f4\u6bb5\uff0cACL\u8fd8\u652f\u6301\u5f88\u591a\u5176\u4ed6\u89c4\u5219\u5339\u914d\u9879\u3002\u4f8b\u5982\uff0c\u4e8c\u5c42\u4ee5\u592a\u7f51\u5e27\u5934\u4fe1\u606f\uff08\u5982\u6e90MAC\u3001\u76ee\u7684MAC\u3001\u4ee5\u592a\u5e27\u534f\u8bae\u7c7b\u578b\uff09\u3001\u4e09\u5c42\u62a5\u6587\u4fe1\u606f\uff08\u5982\u76ee\u7684\u5730\u5740\u3001\u534f\u8bae\u7c7b\u578b\uff09\u4ee5\u53ca\u56db\u5c42\u62a5\u6587\u4fe1\u606f\uff08\u5982TCP\/UDP\u7aef\u53e3\u53f7\uff09\u7b49\u3002\u5173\u4e8e\u6bcf\u79cd\u5339\u914d\u9879\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u8bf7\u53c2\u89c1ACL\u7684\u5e38\u7528\u5339\u914d\u9879\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>ACL\u7684\u5339\u914d\u673a\u5236<\/h3>\n<p>\u8bbe\u5907\u5c06\u62a5\u6587\u4e0eACL\u89c4\u5219\u8fdb\u884c\u5339\u914d\u65f6\uff0c\u9075\u5faa\u201c\u4e00\u65e6\u547d\u4e2d\u5373\u505c\u6b62\u5339\u914d\u201d\u7684\u673a\u5236<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202210301724607.png\" referrerpolicy=\"no-referrer\" alt=\"1667107877374-6799e49c-2728-482e-8b90-dcc752ed0946\"><\/p>\n<p>\u9996\u5148\u7cfb\u7edf\u4f1a\u67e5\u627e\u8bbe\u5907\u4e0a\u662f\u5426\u914d\u7f6e\u4e86ACL\u3002<\/p>\n<ul>\n<li>\u5982\u679cACL\u4e0d\u5b58\u5728\uff0c\u5219\u8fd4\u56deACL\u5339\u914d\u7ed3\u679c\u4e3a\uff1a\u4e0d\u5339\u914d\u3002<\/li>\n<li>\u5982\u679cACL\u5b58\u5728\uff0c\u5219\u67e5\u627e\u8bbe\u5907\u662f\u5426\u914d\u7f6e\u4e86ACL\u89c4\u5219\u3002<\/li>\n<li>\n<ul>\n<li>\u5982\u679c\u89c4\u5219\u4e0d\u5b58\u5728\uff0c\u5219\u8fd4\u56deACL\u5339\u914d\u7ed3\u679c\u4e3a\uff1a\u4e0d\u5339\u914d\u3002<\/li>\n<li>\u5982\u679c\u89c4\u5219\u5b58\u5728\uff0c\u5219\u7cfb\u7edf\u4f1a\u4eceACL\u4e2d\u7f16\u53f7\u6700\u5c0f\u7684\u89c4\u5219\u5f00\u59cb\u67e5\u627e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u5339\u914d\u4e0a\u4e86permit\u89c4\u5219\uff0c\u5219\u505c\u6b62\u67e5\u627e\u89c4\u5219\uff0c\u5e76\u8fd4\u56deACL\u5339\u914d\u7ed3\u679c\u4e3a\uff1a\u5339\u914d\uff08\u5141\u8bb8\uff09\u3002<\/li>\n<li>\u5982\u679c\u5339\u914d\u4e0a\u4e86deny\u89c4\u5219\uff0c\u5219\u505c\u6b62\u67e5\u627e\u89c4\u5219\uff0c\u5e76\u8fd4\u56deACL\u5339\u914d\u7ed3\u679c\u4e3a\uff1a\u5339\u914d\uff08\u62d2\u7edd\uff09\u3002<\/li>\n<li>\u5982\u679c\u672a\u5339\u914d\u4e0a\u89c4\u5219\uff0c\u5219\u7ee7\u7eed\u67e5\u627e\u4e0b\u4e00\u6761\u89c4\u5219\uff0c\u4ee5\u6b64\u5faa\u73af\u3002\u5982\u679c\u4e00\u76f4\u67e5\u5230\u6700\u540e\u4e00\u6761\u89c4\u5219\uff0c\u62a5\u6587\u4ecd\u672a\u5339\u914d\u4e0a\uff0c\u5219\u8fd4\u56deACL\u5339\u914d\u7ed3\u679c\u4e3a\uff1a\u4e0d\u5339\u914d\u3002<\/li>\n<\/ul>\n<p>\u4ece\u6574\u4e2aACL\u5339\u914d\u6d41\u7a0b\u53ef\u4ee5\u770b\u51fa\uff0c\u62a5\u6587\u4e0eACL\u89c4\u5219\u5339\u914d\u540e\uff0c\u4f1a\u4ea7\u751f\u4e24\u79cd\u5339\u914d\u7ed3\u679c\uff1a\u201c\u5339\u914d\u201d\u548c\u201c\u4e0d\u5339\u914d\u201d\u3002<\/p>\n<ul>\n<li>\u5339\u914d\uff08\u547d\u4e2d\u89c4\u5219\uff09\uff1a\u6307\u5b58\u5728ACL\uff0c\u4e14\u5728ACL\u4e2d\u67e5\u627e\u5230\u4e86\u7b26\u5408\u5339\u914d\u6761\u4ef6\u7684\u89c4\u5219\u3002\u4e0d\u8bba\u5339\u914d\u7684\u52a8\u4f5c\u662f\u201cpermit\u201d\u8fd8\u662f\u201cdeny\u201d\uff0c\u90fd\u79f0\u4e3a\u201c\u5339\u914d\u201d\uff0c\u800c\u4e0d\u662f\u53ea\u662f\u5339\u914d\u4e0apermit\u89c4\u5219\u624d\u7b97\u201c\u5339\u914d\u201d\u3002<\/li>\n<li>\u4e0d\u5339\u914d\uff08\u672a\u547d\u4e2d\u89c4\u5219\uff09\uff1a\u6307\u4e0d\u5b58\u5728ACL\uff0c\u6216ACL\u4e2d\u65e0\u89c4\u5219\uff0c\u518d\u6216\u8005\u5728ACL\u4e2d\u904d\u5386\u4e86\u6240\u6709\u89c4\u5219\u90fd\u6ca1\u6709\u627e\u5230\u7b26\u5408\u5339\u914d\u6761\u4ef6\u7684\u89c4\u5219\u3002\u4ee5\u4e0a\u4e09\u79cd\u60c5\u51b5\uff0c\u90fd\u53eb\u505a\u201c\u4e0d\u5339\u914d\u201d\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>ACL\u7684\u5206\u7c7b<\/h2>\n<h3>\u57fa\u4e8eACL\u6807\u8bc6\u65b9\u6cd5\u7684\u5212\u5206<\/h3>\n<p>\u5212\u5206\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u6570\u5b57\u578bACL\uff1a\u4f20\u7edf\u7684ACL\u6807\u8bc6\u65b9\u6cd5\u3002\u521b\u5efaACL\u65f6\uff0c\u6307\u5b9a\u4e00\u4e2a\u552f\u4e00\u7684\u6570\u5b57\u6807\u8bc6\u8be5ACL\u3002<\/li>\n<li>\u547d\u540d\u578bACL\uff1a\u901a\u8fc7\u540d\u79f0\u4ee3\u66ff\u7f16\u53f7\u6765\u6807\u8bc6ACL\u3002<\/li>\n<\/ul>\n<p>\u7528\u6237\u5728\u521b\u5efaACL\u65f6\u53ef\u4ee5\u4e3a\u5176\u6307\u5b9a\u7f16\u53f7\uff0c\u4e0d\u540c\u7684\u7f16\u53f7\u5bf9\u5e94\u4e0d\u540c\u7c7b\u578b\u7684ACL\uff0c\u5982\u88681-1\u6240\u793a\u3002\u540c\u65f6\uff0c\u4e3a\u4e86\u4fbf\u4e8e\u8bb0\u5fc6\u548c\u8bc6\u522b\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u521b\u5efa\u547d\u540d\u578bACL\uff0c\u5373\u5728\u521b\u5efaACL\u65f6\u4e3a\u5176\u8bbe\u7f6e\u540d\u79f0\u3002\u547d\u540d\u578bACL\uff0c\u4e5f\u53ef\u4ee5\u662f\u201c\u540d\u79f0 \u6570\u5b57\u201d\u7684\u5f62\u5f0f\uff0c\u5373\u5728\u5b9a\u4e49\u547d\u540d\u578bACL\u65f6\uff0c\u540c\u65f6\u6307\u5b9aACL\u7f16\u53f7\u3002\u5982\u679c\u4e0d\u6307\u5b9a\u7f16\u53f7\uff0c\u7cfb\u7edf\u5219\u4f1a\u81ea\u52a8\u4e3a\u5176\u5206\u914d\u4e00\u4e2a\u6570\u5b57\u578bACL\u7684\u7f16\u53f7\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u57fa\u4e8e\u5bf9IPv4\u548cIPv6\u652f\u6301\u60c5\u51b5\u7684\u5212\u5206<\/h3>\n<p>\u5212\u5206\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>ACL4\uff1a\u901a\u5e38\u76f4\u63a5\u53eb\u505a\u201cACL\u201d\uff0c\u7279\u6307\u4ec5\u652f\u6301\u8fc7\u6ee4IPv4\u62a5\u6587\u7684ACL\u3002<\/li>\n<li>ACL6\uff1a\u53c8\u53eb\u505a\u201cIPv6 ACL\u201d\uff0c\u7279\u6307\u4ec5\u652f\u6301\u8fc7\u6ee4IPv6\u62a5\u6587\u7684ACL\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u4e24\u79cdACL\uff0c\u4ee5\u53ca\u65e2\u652f\u6301\u8fc7\u6ee4IPv4\u62a5\u6587\u53c8\u652f\u6301\u8fc7\u6ee4IPv6\u62a5\u6587\u7684ACL\uff0c\u7edf\u4e00\u79f0\u505a\u201cACL\u201d\u3002\u5404\u7c7b\u578bACL\u5bf9IPv4\u548cIPv6\u7684\u652f\u6301\u60c5\u51b5\uff0c\u5982\u88681-1\u6240\u793a\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u57fa\u4e8eACL\u89c4\u5219\u5b9a\u4e49\u65b9\u5f0f\u7684\u5212\u5206<\/h3>\n<p>\u5982\u88681-1\u6240\u793a\uff0c\u57fa\u4e8eACL\u89c4\u5219\u5b9a\u4e49\u65b9\u5f0f\u7684\u5212\u5206\u5982\u4e0b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u88681-1<\/strong> \u57fa\u4e8eACL\u89c4\u5219\u5b9a\u4e49\u65b9\u5f0f\u7684ACL\u5206\u7c7b<\/p>\n<figure>\n<table>\n<thead>\n<tr>\n<th><strong>\u5206\u7c7b<\/strong><\/th>\n<th><strong>\u9002\u7528\u7684IP\u7248\u672c<\/strong><\/th>\n<th><strong>\u89c4\u5219\u5b9a\u4e49\u63cf\u8ff0<\/strong><\/th>\n<th><strong>\u7f16\u53f7\u8303\u56f4<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u57fa\u672cACL<\/td>\n<td>IPv4<\/td>\n<td>\u4ec5\u4f7f\u7528\u62a5\u6587\u7684<strong>\u6e90IP\u5730\u5740<\/strong>\u3001\u5206\u7247\u4fe1\u606f\u548c\u751f\u6548\u65f6\u95f4\u6bb5\u4fe1\u606f\u6765\u5b9a\u4e49\u89c4\u5219\u3002<\/td>\n<td>2000\uff5e2999<\/td>\n<\/tr>\n<tr>\n<td>\u9ad8\u7ea7ACL<\/td>\n<td>IPv4<\/td>\n<td>\u65e2\u53ef\u4f7f\u7528IPv4\u62a5\u6587\u7684<strong>\u6e90IP\u5730\u5740<\/strong>\uff0c\u4e5f\u53ef\u4f7f\u7528<strong>\u76ee\u7684IP\u5730\u5740<\/strong>\u3001IP\u534f\u8bae\u7c7b\u578b\u3001ICMP\u7c7b\u578b\u3001TCP\u6e90\/\u76ee\u7684\u7aef\u53e3\u3001UDP\u6e90\/\u76ee\u7684\u7aef\u53e3\u53f7\u3001\u751f\u6548\u65f6\u95f4\u6bb5\u7b49\u6765\u5b9a\u4e49\u89c4\u5219\u3002<\/td>\n<td>3000\uff5e3999<\/td>\n<\/tr>\n<tr>\n<td>\u4e8c\u5c42ACL<\/td>\n<td>IPv4&amp;IPv6<\/td>\n<td>\u4f7f\u7528\u62a5\u6587\u7684<strong>\u4ee5\u592a\u7f51\u5e27\u5934\u4fe1\u606f<\/strong>\u6765\u5b9a\u4e49\u89c4\u5219\uff0c\u5982\u6839\u636e\u6e90MAC\uff08Media Access Control\uff09\u5730\u5740\u3001\u76ee\u7684MAC\u5730\u5740\u3001\u4e8c\u5c42\u534f\u8bae\u7c7b\u578b\u7b49\u3002<\/td>\n<td>4000\uff5e4999<\/td>\n<\/tr>\n<tr>\n<td>\u7528\u6237\u81ea\u5b9a\u4e49ACL<\/td>\n<td>IPv4&amp;IPv6<\/td>\n<td>\u4f7f\u7528<strong>\u62a5\u6587\u5934\u3001\u504f\u79fb\u4f4d\u7f6e\u3001\u5b57\u7b26\u4e32\u63a9\u7801\u548c\u7528\u6237\u81ea\u5b9a\u4e49\u5b57\u7b26\u4e32<\/strong>\u6765\u5b9a\u4e49\u89c4\u5219\uff0c\u5373\u4ee5\u62a5\u6587\u5934\u4e3a\u57fa\u51c6\uff0c\u6307\u5b9a\u4ece\u62a5\u6587\u7684\u7b2c\u51e0\u4e2a\u5b57\u8282\u5f00\u59cb\u4e0e\u5b57\u7b26\u4e32\u63a9\u7801\u8fdb\u884c\u201c\u4e0e\u201d\u64cd\u4f5c\uff0c\u5e76\u5c06\u63d0\u53d6\u51fa\u7684\u5b57\u7b26\u4e32\u4e0e\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u5b57\u7b26\u4e32\u8fdb\u884c\u6bd4\u8f83\uff0c\u4ece\u800c\u8fc7\u6ee4\u51fa\u76f8\u5339\u914d\u7684\u62a5\u6587\u3002<\/td>\n<td>5000\uff5e5999<\/td>\n<\/tr>\n<tr>\n<td>\u7528\u6237ACL<\/td>\n<td>IPv4<\/td>\n<td>\u65e2\u53ef\u4f7f\u7528IPv4\u62a5\u6587\u7684<strong>\u6e90IP\u5730\u5740<\/strong>\uff0c\u4e5f\u53ef\u4f7f\u7528<strong>\u76ee\u7684IP\u5730\u5740<\/strong>\u3001IP\u534f\u8bae\u7c7b\u578b\u3001ICMP\u7c7b\u578b\u3001TCP\u6e90\u7aef\u53e3\/\u76ee\u7684\u7aef\u53e3\u3001UDP\u6e90\u7aef\u53e3\/\u76ee\u7684\u7aef\u53e3\u53f7\u7b49\u6765\u5b9a\u4e49\u89c4\u5219\u3002<\/td>\n<td>6000\uff5e6031<\/td>\n<\/tr>\n<tr>\n<td>\u57fa\u672cACL6<\/td>\n<td>IPv6<\/td>\n<td>\u53ef\u4f7f\u7528IPv6\u62a5\u6587\u7684<strong>\u6e90IPv6\u5730\u5740<\/strong>\u3001\u5206\u7247\u4fe1\u606f\u548c\u751f\u6548\u65f6\u95f4\u6bb5\u6765\u5b9a\u4e49\u89c4\u5219\u3002<\/td>\n<td>2000\uff5e2999<\/td>\n<\/tr>\n<tr>\n<td>\u9ad8\u7ea7ACL6<\/td>\n<td>IPv6<\/td>\n<td>\u53ef\u4ee5\u4f7f\u7528IPv6\u62a5\u6587\u7684<strong>\u6e90IPv6\u5730\u5740<\/strong>\u3001<strong>\u76ee\u7684IPv6\u5730\u5740<\/strong>\u3001IPv6\u534f\u8bae\u7c7b\u578b\u3001ICMPv6\u7c7b\u578b\u3001TCP\u6e90\/\u76ee\u7684\u7aef\u53e3\u3001UDP\u6e90\/\u76ee\u7684\u7aef\u53e3\u53f7\u3001\u751f\u6548\u65f6\u95f4\u6bb5\u7b49\u6765\u5b9a\u4e49\u89c4\u5219\u3002<\/td>\n<td>3000\uff5e3999<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>&nbsp;<\/p>\n<h2>ACL\u7684\u5339\u914d\u987a\u5e8f<\/h2>\n<p>\u4e00\u6761ACL\u53ef\u4ee5\u7531\u591a\u6761\u201cdeny | permit\u201d\u8bed\u53e5\u7ec4\u6210\uff0c\u6bcf\u4e00\u6761\u8bed\u53e5\u63cf\u8ff0\u4e00\u6761\u89c4\u5219\uff0c\u8fd9\u4e9b\u89c4\u5219\u53ef\u80fd\u5b58\u5728\u91cd\u590d\u6216\u77db\u76fe\u7684\u5730\u65b9\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u6761ACL\u4e2d\u5148\u540e\u914d\u7f6e\u4ee5\u4e0b\u4e24\u6761\u89c4\u5219\uff1a<\/p>\n<pre><code>rule deny ip destination 10.1.0.0 0.0.255.255   \/\/\u8868\u793a\u62d2\u7edd\u76ee\u7684IP\u5730\u5740\u4e3a10.1.0.0\/16\u7f51\u6bb5\u5730\u5740\u7684\u62a5\u6587\u901a\u8fc7 \nrule permit ip destination 10.1.1.0 0.0.0.255   \/\/\u8868\u793a\u5141\u8bb8\u76ee\u7684IP\u5730\u5740\u4e3a10.1.1.0\/24\u7f51\u6bb5\u5730\u5740\u7684\u62a5\u6587\u901a\u8fc7\uff0c\u8be5\u7f51\u6bb5\u5730\u5740\u8303\u56f4\u5c0f\u4e8e10.1.0.0\/16\u7f51\u6bb5\u8303\u56f4     \n<\/code><\/pre>\n<p>\u5176\u4e2d\uff0cpermit\u89c4\u5219\u4e0edeny\u89c4\u5219\u662f\u76f8\u4e92\u77db\u76fe\u7684\u3002\u5bf9\u4e8e\u76ee\u7684IP=10.1.1.1\u7684\u62a5\u6587\uff0c\u5982\u679c\u7cfb\u7edf\u5148\u5c06deny\u89c4\u5219\u4e0e\u5176\u5339\u914d\uff0c\u5219\u8be5\u62a5\u6587\u4f1a\u88ab\u62d2\u7edd\u901a\u8fc7\u3002\u76f8\u53cd\uff0c\u5982\u679c\u7cfb\u7edf\u5148\u5c06permit\u89c4\u5219\u4e0e\u5176\u5339\u914d\uff0c\u5219\u8be5\u62a5\u6587\u4f1a\u5f97\u5230\u5141\u8bb8\u901a\u8fc7\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5bf9\u4e8e\u89c4\u5219\u4e4b\u95f4\u5b58\u5728\u91cd\u590d\u6216\u77db\u76fe\u7684\u60c5\u5f62\uff0c\u62a5\u6587\u7684\u5339\u914d\u7ed3\u679c\u4e0eACL\u7684\u5339\u914d\u987a\u5e8f\u662f\u606f\u606f\u76f8\u5173\u7684\u3002<\/p>\n<p>\u8bbe\u5907\u652f\u6301\u4e24\u79cdACL\u5339\u914d\u987a\u5e8f\uff1a\u914d\u7f6e\u987a\u5e8f\uff08<strong>config<\/strong>\u6a21\u5f0f\uff09\u548c\u81ea\u52a8\u6392\u5e8f\uff08<strong>auto<\/strong>\u6a21\u5f0f\uff09\u3002\u7f3a\u7701\u7684ACL\u5339\u914d\u987a\u5e8f\u662f<strong>config<\/strong>\u6a21\u5f0f\u3002<\/p>\n<h3>\u914d\u7f6e\u987a\u5e8f<\/h3>\n<p>\u914d\u7f6e\u987a\u5e8f\uff0c\u5373\u7cfb\u7edf\u6309\u7167ACL\u89c4\u5219\u7f16\u53f7\u4ece\u5c0f\u5230\u5927\u7684\u987a\u5e8f\u8fdb\u884c\u62a5\u6587\u5339\u914d\uff0c\u89c4\u5219\u7f16\u53f7\u8d8a\u5c0f\u8d8a\u5bb9\u6613\u88ab\u5339\u914d\u3002<\/p>\n<ul>\n<li>\u5982\u679c\u914d\u7f6e\u89c4\u5219\u65f6\u6307\u5b9a\u4e86\u89c4\u5219\u7f16\u53f7\uff0c\u5219\u89c4\u5219\u7f16\u53f7\u8d8a\u5c0f\uff0c\u89c4\u5219\u63d2\u5165\u4f4d\u7f6e\u8d8a\u9760\u524d\uff0c\u8be5\u89c4\u5219\u8d8a\u5148\u88ab\u5339\u914d\u3002<\/li>\n<li>\u5982\u679c\u914d\u7f6e\u89c4\u5219\u65f6\u672a\u6307\u5b9a\u89c4\u5219\u7f16\u53f7\uff0c\u5219\u7531\u7cfb\u7edf\u81ea\u52a8\u4e3a\u5176\u5206\u914d\u4e00\u4e2a\u7f16\u53f7\u3002\u8be5\u7f16\u53f7\u662f\u4e00\u4e2a\u5927\u4e8e\u5f53\u524dACL\u5185\u6700\u5927\u89c4\u5219\u7f16\u53f7\u4e14\u662f\u6b65\u957f\u6574\u6570\u500d\u7684\u6700\u5c0f\u6574\u6570\uff0c\u56e0\u6b64\u8be5\u89c4\u5219\u4f1a\u88ab\u6700\u540e\u5339\u914d\u3002<\/li>\n<\/ul>\n<h3>\u81ea\u52a8\u6392\u5e8f<\/h3>\n<p>\u81ea\u52a8\u6392\u5e8f\uff0c\u662f\u6307\u7cfb\u7edf\u4f7f\u7528\u201c\u6df1\u5ea6\u4f18\u5148\u201d\u7684\u539f\u5219\uff0c\u5c06\u89c4\u5219\u6309\u7167\u7cbe\u786e\u5ea6\u4ece\u9ad8\u5230\u4f4e\u8fdb\u884c\u6392\u5e8f\uff0c\u5e76\u6309\u7167\u7cbe\u786e\u5ea6\u4ece\u9ad8\u5230\u4f4e\u7684\u987a\u5e8f\u8fdb\u884c\u62a5\u6587\u5339\u914d\u3002\u89c4\u5219\u4e2d\u5b9a\u4e49\u7684\u5339\u914d\u9879\u9650\u5236\u8d8a\u4e25\u683c\uff0c\u89c4\u5219\u7684\u7cbe\u786e\u5ea6\u5c31\u8d8a\u9ad8\uff0c\u5373\u4f18\u5148\u7ea7\u8d8a\u9ad8\uff0c\u7cfb\u7edf\u8d8a\u5148\u5339\u914d\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>ACL\u7684\u751f\u6548\u65f6\u95f4<\/h2>\n<h3>\u4ea7\u751f\u80cc\u666f<\/h3>\n<p>ACL\u5b9a\u4e49\u4e86\u4e30\u5bcc\u7684\u5339\u914d\u9879\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u90e8\u5206\u7684\u62a5\u6587\u8fc7\u6ee4\u9700\u6c42\u3002\u4f46\u9700\u6c42\u662f\u4e0d\u65ad\u53d8\u5316\u53d1\u5c55\u7684\uff0c\u65b0\u7684\u9700\u6c42\u603b\u662f\u4e0d\u65ad\u6d8c\u73b0\u3002\u4f8b\u5982\uff0c\u67d0\u516c\u53f8\u8981\u6c42\uff0c\u5728\u4e0a\u73ed\u65f6\u95f4\u53ea\u5141\u8bb8\u5458\u5de5\u6d4f\u89c8\u4e0e\u5de5\u4f5c\u76f8\u5173\u7684\u51e0\u4e2a\u7f51\u7ad9\uff0c\u4e0b\u73ed\u6216\u5468\u672b\u65f6\u95f4\u624d\u53ef\u4ee5\u8bbf\u95ee\u5176\u4ed6\u4e92\u8054\u7f51\u7f51\u7ad9\uff1b\u518d\u5982\uff0c\u5728\u6bcf\u592920:00\uff5e22:00\u7684\u7f51\u7edc\u6d41\u91cf\u7684\u9ad8\u5cf0\u671f\uff0c\u4e3a\u9632\u6b62P2P\u3001\u4e0b\u8f7d\u7c7b\u4e1a\u52a1\u5360\u7528\u5927\u91cf\u5e26\u5bbd\u5bf9\u5176\u4ed6\u6570\u636e\u4e1a\u52a1\u7684\u6b63\u5e38\u4f7f\u7528\u9020\u6210\u5f71\u54cd\uff0c\u9700\u8981\u5bf9P2P\u3001\u4e0b\u8f7d\u7c7b\u4e1a\u52a1\u7684\u5e26\u5bbd\u8fdb\u884c\u9650\u5236\u3002<\/p>\n<p>\u57fa\u4e8e\u65f6\u95f4\u7684ACL\u8fc7\u6ee4\u5c31\u662f\u7528\u6765\u89e3\u51b3\u4e0a\u8ff0\u95ee\u9898\u7684\u3002\u7ba1\u7406\u5458\u53ef\u4ee5\u6839\u636e\u7f51\u7edc\u8bbf\u95ee\u884c\u4e3a\u7684\u8981\u6c42\u548c\u7f51\u7edc\u7684\u62e5\u585e\u60c5\u51b5\uff0c\u914d\u7f6e\u4e00\u4e2a\u6216\u591a\u4e2aACL\u751f\u6548\u65f6\u95f4\u6bb5\uff0c\u7136\u540e\u5728ACL\u89c4\u5219\u4e2d\u5f15\u7528\u8be5\u65f6\u95f4\u6bb5\uff0c\u4ece\u800c\u5b9e\u73b0\u5728\u4e0d\u540c\u7684\u65f6\u95f4\u6bb5\u8bbe\u7f6e\u4e0d\u540c\u7684\u7b56\u7565\uff0c\u8fbe\u5230\u7f51\u7edc\u4f18\u5316\u7684\u76ee\u7684\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u751f\u6548\u65f6\u95f4\u6bb5\u6a21\u5f0f<\/h3>\n<p>\u5728ACL\u89c4\u5219\u4e2d\u5f15\u7528\u7684\u751f\u6548\u65f6\u95f4\u6bb5\u5b58\u5728\u4e24\u79cd\u6a21\u5f0f\uff1a<\/p>\n<ul>\n<li>\u7b2c\u4e00\u79cd\u6a21\u5f0f\u2014\u2014\u5468\u671f\u65f6\u95f4\u6bb5\uff1a\u4ee5\u661f\u671f\u4e3a\u53c2\u6570\u6765\u5b9a\u4e49\u65f6\u95f4\u8303\u56f4\uff0c\u8868\u793a\u89c4\u5219\u4ee5\u4e00\u5468\u4e3a\u5468\u671f\uff08\u5982\u6bcf\u5468\u4e00\u76848\u81f312\u70b9\uff09\u5faa\u73af\u751f\u6548\u3002\u683c\u5f0f\uff1a<strong>time-range<\/strong> <em>time-name<\/em> <em>start-time<\/em> <strong>to<\/strong> <em>end-time<\/em> { <em>days<\/em> } &amp;&lt;1-7&gt;<\/li>\n<li>\n<ul>\n<li><em>time-name<\/em>\uff1a\u65f6\u95f4\u6bb5\u540d\u79f0\uff0c\u4ee5\u82f1\u6587\u5b57\u6bcd\u5f00\u5934\u7684\u5b57\u7b26\u4e32\u3002<\/li>\n<li><em>start-time<\/em> <strong>to<\/strong> <em>end-time<\/em>\uff1a\u5f00\u59cb\u65f6\u95f4\u548c\u7ed3\u675f\u65f6\u95f4\u3002\u683c\u5f0f\u4e3a[\u5c0f\u65f6:\u5206\u949f] to [\u5c0f\u65f6:\u5206\u949f]\u3002<\/li>\n<li><em>days<\/em>\uff1a\u6709\u591a\u79cd\u8868\u8fbe\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<ul>\n<li>\n<ul>\n<li><strong>Mon<\/strong>\u3001<strong>Tue<\/strong>\u3001<strong>Wed<\/strong>\u3001<strong>Thu<\/strong>\u3001<strong>Fri<\/strong>\u3001<strong>Sat<\/strong>\u3001<strong>Sun<\/strong>\u4e2d\u7684\u4e00\u4e2a\u6216\u8005\u51e0\u4e2a\u7684\u7ec4\u5408\uff0c\u4e5f\u53ef\u4ee5\u7528\u6570\u5b57\u8868\u8fbe\uff0c0\u8868\u793a\u661f\u671f\u65e5\uff0c1\u8868\u793a\u661f\u671f\u4e00\uff0c\u2026\u20266\u8868\u793a\u661f\u671f\u516d\u3002<\/li>\n<li><strong>working-day<\/strong>\uff1a\u4ece\u661f\u671f\u4e00\u5230\u661f\u671f\u4e94\uff0c\u4e94\u5929\u3002<\/li>\n<li><strong>daily<\/strong>\uff1a\u5305\u62ec\u4e00\u5468\u4e03\u5929\u3002<\/li>\n<li><strong>off-day<\/strong>\uff1a\u5305\u62ec\u661f\u671f\u516d\u548c\u661f\u671f\u65e5\uff0c\u4e24\u5929\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e8c\u79cd\u6a21\u5f0f\u2014\u2014\u7edd\u5bf9\u65f6\u95f4\u6bb5\uff1a\u4ece\u67d0\u5e74\u67d0\u6708\u67d0\u65e5\u7684\u67d0\u4e00\u65f6\u95f4\u5f00\u59cb\uff0c\u5230\u67d0\u5e74\u67d0\u6708\u67d0\u65e5\u7684\u67d0\u4e00\u65f6\u95f4\u7ed3\u675f\uff0c\u8868\u793a\u89c4\u5219\u5728\u8fd9\u6bb5\u65f6\u95f4\u8303\u56f4\u5185\u751f\u6548\u3002\u683c\u5f0f\uff1a<strong>time-range<\/strong> <em>time-name<\/em> <strong>from<\/strong> <em>time1<\/em> <em>date1<\/em> [ <strong>to<\/strong> <em>time2<\/em> <em>date2<\/em> ]<\/li>\n<li>\n<ul>\n<li><em>time-name<\/em>\uff1a\u65f6\u95f4\u6bb5\u540d\u79f0\uff0c\u4ee5\u82f1\u6587\u5b57\u6bcd\u5f00\u5934\u7684\u5b57\u7b26\u4e32\u3002<\/li>\n<li><em>time1<\/em>\/<em>time2<\/em>\uff1a\u683c\u5f0f\u4e3a[\u5c0f\u65f6:\u5206\u949f]\u3002<\/li>\n<li><em>date1<\/em>\/<em>date2<\/em>\uff1a\u683c\u5f0f\u4e3a[YYYY\/MM\/DD]\uff0c\u8868\u793a\u5e74\/\u6708\/\u65e5\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u53ef\u4ee5\u4f7f\u7528\u540c\u4e00\u540d\u79f0\uff08<em>time-name<\/em>\uff09\u914d\u7f6e\u5185\u5bb9\u4e0d\u540c\u7684\u591a\u6761\u65f6\u95f4\u6bb5\uff0c\u914d\u7f6e\u7684\u5404\u5468\u671f\u65f6\u95f4\u6bb5\u4e4b\u95f4\u4ee5\u53ca\u5404\u7edd\u5bf9\u65f6\u95f4\u6bb5\u4e4b\u95f4\u7684\u4ea4\u96c6\u5c06\u6210\u4e3a\u6700\u7ec8\u751f\u6548\u7684\u65f6\u95f4\u8303\u56f4\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5728ACL 2001\u4e2d\u5f15\u7528\u4e86\u65f6\u95f4\u6bb5\u201ctest\u201d\uff0c\u201ctest\u201d\u5305\u542b\u4e86\u4e09\u4e2a\u751f\u6548\u65f6\u95f4\u6bb5\uff1a<\/p>\n<pre><code>#   \ntime-range test 8:00 to 18:00 working-day  \ntime-range test 14:00 to 18:00 off-day  \ntime-range test from 00:00 2014\/01\/01 to 23:59 2014\/12\/31  \n#   \nacl number 2001                                                                  \n rule 5 permit time-range test \n<\/code><\/pre>\n<ul>\n<li>\u7b2c\u4e00\u4e2a\u65f6\u95f4\u6bb5\uff0c\u8868\u793a\u5728\u5468\u4e00\u5230\u5468\u4e94\u6bcf\u59298:00\u523018:00\u751f\u6548\uff0c\u8fd9\u662f\u4e00\u4e2a\u5468\u671f\u65f6\u95f4\u6bb5\u3002<\/li>\n<li>\u7b2c\u4e8c\u4e2a\u65f6\u95f4\u6bb5\uff0c\u8868\u793a\u5728\u5468\u516d\u3001\u5468\u65e5\u4e0b\u534814:00\u523018:00\u751f\u6548\uff0c\u8fd9\u662f\u4e00\u4e2a\u5468\u671f\u65f6\u95f4\u6bb5\u3002<\/li>\n<li>\u7b2c\u4e09\u4e2a\u65f6\u95f4\u6bb5\uff0c\u8868\u793a\u4ece2014\u5e741\u67081\u65e500:00\u8d77\u52302014\u5e7412\u670831\u65e523:59\u751f\u6548\uff0c\u8fd9\u662f\u4e00\u4e2a\u7edd\u5bf9\u65f6\u95f4\u6bb5\u3002<\/li>\n<\/ul>\n<p>\u65f6\u95f4\u6bb5\u201ctest\u201d\u6700\u7ec8\u63cf\u8ff0\u7684\u65f6\u95f4\u8303\u56f4\u4e3a\uff1a2014\u5e74\u7684\u5468\u4e00\u5230\u5468\u4e94\u6bcf\u59298:00\u523018:00\u4ee5\u53ca\u5468\u516d\u548c\u5468\u65e5\u4e0b\u534814:00\u523018:00\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5b9e\u9a8c<\/h2>\n<p>\u8fd8\u662f\u8001\u6837\u5b50\u5148\u5949\u4e0a\u5b8c\u6574\u62d3\u6251\uff08\u5df2\u914d\u7f6e\u597d\uff09<a href=\"https:\/\/resource.chentaiyang.space\/ensp-ACL.zip\">\u6233\u6211\ud83c\udf39<\/a><\/p>\n<h3>\u62d3\u6251\u56fe<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202210301725407.png\" referrerpolicy=\"no-referrer\" alt=\"1667108860370-83ee4108-107e-44a1-95ab-c560bc5d4a02\"><\/p>\n<p>\u6982\u8ff0\uff1a<\/p>\n<ul>\n<li>\u4eba\u4e8b\u90e8\u5728\u5de5\u4f5c\u65e508:00&#8211;12:00\u4ee5\u53ca13:30&#8211;17:30\u4e0d\u80fd\u8bbf\u95ee\u5916\u90e8\u7f51\u7edc\uff08AR5\uff09<\/li>\n<li>\u8d22\u52a1\u90e8\u53ea\u80fd\u5728\u4f11\u606f\u65e512:00&#8211;18:00\u70b9\u8bbf\u95ee\u5916\u90e8\u7f51\u7edc\uff08AR5\uff09<\/li>\n<li>\u7814\u53d1\u90e8\u53ea\u80fd\u57282022\u5e7410\u670822\u65e5\u52302023\u5e7410\u670822\u65e5\u5de5\u4f5c\u65e5\u76848:00&#8211;18:00\u70b9\u8bbf\u95ee\u5916\u90e8\u7f51\u7edc<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>\u914d\u7f6e\u547d\u4ee4<\/h3>\n<p>AR1\u4e0a\uff1a<\/p>\n<pre><code>\/\/ \u521b\u5efa\u65f6\u95f4\u7ec4\ntime-range morning 8:00 to 12:00 working-day\ntime-range afternoon 13:30 to 17:30 working-day\n\n\/\/ \u521b\u5efa\u9ad8\u7ea7ACL\nacl name deny_renshiToInternet 3000\nrule deny ip source 192.168.10.0 0.0.0.255 destination 172.16.1.0 0.0.0.255 time-range morning\nrule deny ip source 192.168.10.0 0.0.0.255 destination 172.16.1.0 0.0.0.255 time-range afternoon\n\n\/\/ \u51fa\u63a5\u53e3\u6302\u8d77\nint g0\/0\/1\ntraffic-fitter outbound acl 3000\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>AR2\u4e0a\uff1a<\/p>\n<pre><code>\/\/ \u521b\u5efa\u65f6\u95f4\u7ec4\ntime-range caiwu 12:00 to 18:00 off-day\n\n\/\/ \u521b\u5efa\u9ad8\u7ea7ACL\nacl name permit_caiwuToInternet 3000\nrule deny ip source 192.168.20.0 0.0.0.255 destination 172.16.1.0 0.0.0.255 time-range caiwu\nrule deny ip source any\n\n\/\/ \u51fa\u63a5\u53e3\u6302\u8d77\nint g0\/0\/2\ntraffic-fitter outbound acl 3000\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>AR3\u4e0a\uff1a<\/p>\n<pre><code>\/\/ \u521b\u5efa\u65f6\u95f4\u7ec4\ntime-range yanfa 8:00 to 18:00 working-day\ntime-range yanfa from 00:00 2022\/10\/22 to 23:59 2023\/10\/22\n\n\/\/ \u521b\u5efa\u9ad8\u7ea7ACL\nacl name permit_yanfaToInternet 3000\nrule deny ip source 192.168.30.0 0.0.0.255 destination 172.16.1.0 0.0.0.255 time-range yanfa\nrule deny ip source any\n\n\/\/ \u51fa\u63a5\u53e3\u6302\u8d77\nint g0\/0\/1\ntraffic-fitter outbound acl 3000\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h3>\u6d4b\u8bd5<\/h3>\n<p>\u7531\u4e8e\u5199\u8fd9\u7bc7\u6587\u7ae0\u65f6\u662f2022\u5e7410\u670830\u65e514\u70b923\u5206\uff08\u661f\u671f\u65e5\uff09\uff0c\u6240\u4ee5\u4e09\u4e2a\u7f51\u6bb5\u7684pc\u90fd\u80fdping\u901aAR5\uff0c\u770b\u4e0d\u51fa\u4f5c\u7528<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202210301725867.png\" referrerpolicy=\"no-referrer\" alt=\"1667111125789-d6475c0e-840d-49c4-8da7-c5c8ab83c5ed\"><\/p>\n<p>\u4e0d\u8fc7\u53ef\u4ee5\u4f7f\u7528 <code>clock datetime \u65f6\u95f4 \u65e5\u671f<\/code> \u6765\u4fee\u6539\u8def\u7531\u5668\u65f6\u95f4\uff0c\u8fd9\u91cc\u5c31\u4e0d\u505a\u6f14\u793a\u4e86<\/p>\n<p>&nbsp;<\/p>\n<p>\u7ed9\u5927\u5bb6\u770b\u4e00\u4e0b\u5404\u8def\u7531\u5668\u7684\u65f6\u95f4\u7ec4\u4ee5\u53caACL\u89c4\u5219<\/p>\n<p>AR1<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202210301726668.png\" referrerpolicy=\"no-referrer\" alt=\"1667111293680-7d6080ce-3c07-49a4-ad61-02cd20b33113\"><\/p>\n<p>&nbsp;<\/p>\n<p>AR2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202210301726607.png\" referrerpolicy=\"no-referrer\" alt=\"1667111345168-b71c5ade-78c7-4856-a5fb-65113214d7c4\"><\/p>\n<p>&nbsp;<\/p>\n<p>AR3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202211011258680.png\" referrerpolicy=\"no-referrer\" alt=\"PicGo202210301726051\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u672c\u6587\u5b8c<\/p>\n<p>\u656c\u7231\u4e0e\u660e\u5929\ud83c\udf39<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u8ff0ACL\u534f\u8bae\u9644\u5e26\u5b9e\u9a8c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80],"tags":[81,62,36],"class_list":["post-280","post","type-post","status-publish","format-standard","hentry","category-huawei","tag-ensp","tag-62","tag-36"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ACL\u7b80\u8ff0 - #\u762b\u7537\u65e5\u8bb0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.taiyang.space\/?p=280\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ACL\u7b80\u8ff0 - #\u762b\u7537\u65e5\u8bb0\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u8ff0ACL\u534f\u8bae\u9644\u5e26\u5b9e\u9a8c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.taiyang.space\/?p=280\" \/>\n<meta property=\"og:site_name\" content=\"#\u762b\u7537\u65e5\u8bb0\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-30T09:30:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-01T05:00:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picture.chentaiyang.space\/PicGo202210301724036.png\" \/>\n<meta name=\"author\" content=\"taiyang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"taiyang\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=280#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=280\"},\"author\":{\"name\":\"taiyang\",\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"headline\":\"ACL\u7b80\u8ff0\",\"datePublished\":\"2022-10-30T09:30:27+00:00\",\"dateModified\":\"2022-11-01T05:00:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=280\"},\"wordCount\":295,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"keywords\":[\"ensp\",\"\u6570\u901a\",\"\u8ba1\u7f51\"],\"articleSection\":[\"Huawei\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.taiyang.space\/?p=280#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=280\",\"url\":\"https:\/\/blog.taiyang.space\/?p=280\",\"name\":\"ACL\u7b80\u8ff0 - #\u762b\u7537\u65e5\u8bb0\",\"isPartOf\":{\"@id\":\"https:\/\/blog.taiyang.space\/#website\"},\"datePublished\":\"2022-10-30T09:30:27+00:00\",\"dateModified\":\"2022-11-01T05:00:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=280#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.taiyang.space\/?p=280\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=280#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.taiyang.space\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ACL\u7b80\u8ff0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.taiyang.space\/#website\",\"url\":\"https:\/\/blog.taiyang.space\/\",\"name\":\"#\u762b\u7537\u65e5\u8bb0\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.taiyang.space\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\",\"name\":\"taiyang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg\",\"contentUrl\":\"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg\",\"width\":612,\"height\":640,\"caption\":\"taiyang\"},\"logo\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/blog.taiyang.space\"],\"url\":\"https:\/\/blog.taiyang.space\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ACL\u7b80\u8ff0 - #\u762b\u7537\u65e5\u8bb0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.taiyang.space\/?p=280","og_locale":"zh_CN","og_type":"article","og_title":"ACL\u7b80\u8ff0 - #\u762b\u7537\u65e5\u8bb0","og_description":"\u7b80\u8ff0ACL\u534f\u8bae\u9644\u5e26\u5b9e\u9a8c","og_url":"https:\/\/blog.taiyang.space\/?p=280","og_site_name":"#\u762b\u7537\u65e5\u8bb0","article_published_time":"2022-10-30T09:30:27+00:00","article_modified_time":"2022-11-01T05:00:54+00:00","og_image":[{"url":"https:\/\/picture.chentaiyang.space\/PicGo202210301724036.png"}],"author":"taiyang","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"taiyang","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.taiyang.space\/?p=280#article","isPartOf":{"@id":"https:\/\/blog.taiyang.space\/?p=280"},"author":{"name":"taiyang","@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"headline":"ACL\u7b80\u8ff0","datePublished":"2022-10-30T09:30:27+00:00","dateModified":"2022-11-01T05:00:54+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.taiyang.space\/?p=280"},"wordCount":295,"commentCount":1,"publisher":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"keywords":["ensp","\u6570\u901a","\u8ba1\u7f51"],"articleSection":["Huawei"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.taiyang.space\/?p=280#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.taiyang.space\/?p=280","url":"https:\/\/blog.taiyang.space\/?p=280","name":"ACL\u7b80\u8ff0 - #\u762b\u7537\u65e5\u8bb0","isPartOf":{"@id":"https:\/\/blog.taiyang.space\/#website"},"datePublished":"2022-10-30T09:30:27+00:00","dateModified":"2022-11-01T05:00:54+00:00","breadcrumb":{"@id":"https:\/\/blog.taiyang.space\/?p=280#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.taiyang.space\/?p=280"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.taiyang.space\/?p=280#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.taiyang.space\/"},{"@type":"ListItem","position":2,"name":"ACL\u7b80\u8ff0"}]},{"@type":"WebSite","@id":"https:\/\/blog.taiyang.space\/#website","url":"https:\/\/blog.taiyang.space\/","name":"#\u762b\u7537\u65e5\u8bb0","description":"","publisher":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.taiyang.space\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c","name":"taiyang","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/","url":"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg","contentUrl":"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg","width":612,"height":640,"caption":"taiyang"},"logo":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/blog.taiyang.space"],"url":"https:\/\/blog.taiyang.space\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=280"}],"version-history":[{"count":3,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":292,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/280\/revisions\/292"}],"wp:attachment":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}