{"id":5423,"date":"2019-11-21T22:26:58","date_gmt":"2019-11-21T14:26:58","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5423"},"modified":"2020-05-05T16:33:57","modified_gmt":"2020-05-05T08:33:57","slug":"arptables","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/arptables","title":{"rendered":"arptables\u547d\u4ee4 – ARP\u5305\u8fc7\u6ee4\u7ba1\u7406\u5de5\u5177"},"content":{"rendered":"\n
arptables\u547d\u4ee4\u7528\u6765\u8bbe\u7f6e\u3001\u7ef4\u62a4\u548c\u68c0\u67e5Linux\u5185\u6838\u4e2d\u7684arp\u5305\u8fc7\u6ee4\u89c4\u5219\u8868\u3002\u4f7f\u7528arptables\u547d\u4ee4\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u4e0d\u540c\u7684\u89c4\u5219\u8868\uff0c\u6bcf\u4e2a\u89c4\u5219\u8868\u5305\u542b\u591a\u4e2a\u5185\u7f6e\u7684\u89c4\u5219\u94fe\u6216\u8005\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u89c4\u5219\u94fe\u3002<\/p>\n\n\n\n
arptables\u547d\u4ee4\u5de5\u4f5c\u5728ARP\u534f\u8bae\u5c42\uff0c\u8981\u638c\u63e1\u6b64\u547d\u4ee4\u5fc5\u987b\u7406\u89e3ARP\u7684\u539f\u7406\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f: <\/strong> arptables [\u53c2\u6570] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong> <\/p>\n\n\n\n \u6dfb\u52a0\u65b0\u7684\u89c4\u5219\uff1a<\/p>\n\n\n\n \u663e\u793aarp\u5305\u8fc7\u6ee4\u89c4\u5219\uff1a<\/p>\n\n\n\n \u6307\u5b9a\u6e90ip\u8fdb\u884c\u5305\u8fc7\u6ee4\uff1a<\/p>\n\n\n\n arptables\u547d\u4ee4\u7528\u6765\u8bbe\u7f6e\u3001\u7ef4\u62a4\u548c\u68c0\u67e5Linux\u5185\u6838\u4e2d\u7684arp\u5305\u8fc7\u6ee4\u89c4\u5219\u8868\u3002\u4f7f\u7528arptables\u547d\u4ee4\u53ef\u4ee5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5423"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5423"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5423\/revisions"}],"predecessor-version":[{"id":7503,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5423\/revisions\/7503"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-A<\/td> \u5411\u89c4\u5219\u94fe\u4e2d\u8ffd\u52a0\u89c4\u5219<\/td><\/tr> -D<\/td> \u4ece\u6307\u5b9a\u7684\u94fe\u4e2d\u5220\u9664\u89c4\u5219<\/td><\/tr> -l<\/td> \u5411\u89c4\u5219\u94fe\u4e2d\u63d2\u5165\u4e00\u6761\u65b0\u7684\u89c4\u5219<\/td><\/tr> -R<\/td> \u66ff\u6362\u6307\u5b9a\u89c4\u5219<\/td><\/tr> -P<\/td> \u8bbe\u7f6e\u89c4\u5219\u94fe\u7684\u9ed8\u8ba4\u7b56\u7565<\/td><\/tr> -F<\/td> \u5237\u65b0\u6307\u5b9a\u89c4\u5219\u94fe\uff0c\u5c06\u5176\u4e2d\u7684\u6240\u6709\u89c4\u5219\u94fe\u5220\u9664\uff0c\u4f46\u662f\u4e0d\u6539\u53d8\u89c4\u5219\u94fe\u7684\u9ed8\u8ba4\u7b56\u7565<\/td><\/tr> -Z<\/td> \u5c06\u89c4\u5219\u94fe\u8ba1\u6570\u5668\u6e05\u96f6<\/td><\/tr> -L<\/td> \u663e\u793a\u89c4\u5219\u94fe\u4e2d\u7684\u89c4\u5219\u5217\u8868<\/td><\/tr> -X<\/td> \u5220\u9664\u6307\u5b9a\u7684\u7a7a\u7528\u6237\u81ea\u5b9a\u4e49\u89c4\u5219\u94fe<\/td><\/tr> -h<\/td> \u663e\u793a\u6307\u4ee4\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr> -j<\/td> \u6307\u5b9a\u6ee1\u8db3\u89c4\u5219\u7684\u6dfb\u52a0\u65f6\u7684\u76ee\u6807<\/td><\/tr> -s<\/td> \u6307\u5b9a\u8981\u5339\u914dARP\u5305\u7684\u6e90ip\u5730\u5740<\/td><\/tr> -d<\/td> \u6307\u5b9a\u8981\u5339\u914dARP\u5305\u7684\u76ee\u7684IP\u5730\u5740<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# arptables -A IN -s 192.168.0.10 -j DROP<\/pre>\n\n\n\n
[root@linuxcool ~]# arptables -L<\/pre>\n\n\n\n
[root@linuxcool ~]# arptables -s 192.168.20.20<\/pre>\n","protected":false},"excerpt":{"rendered":"