{"id":4702,"date":"2019-08-24T00:59:04","date_gmt":"2019-08-23T16:59:04","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4702"},"modified":"2022-05-28T19:26:45","modified_gmt":"2022-05-28T11:26:45","slug":"ip6tables","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ip6tables","title":{"rendered":"ip6tables\u547d\u4ee4 – IPv6\u9632\u706b\u5899\u7b56\u7565\u7ba1\u7406\u5de5\u5177"},"content":{"rendered":"\n

ip6tables\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cipv6 iptables\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8eIpv6\u7ea7\u522b\u7684\u9632\u706b\u5899\u7b56\u7565\u7ba1\u7406\u5de5\u5177\u3002\u4e0eiptables\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\u4e00\u81f4\uff0c\u90fd\u662fiptables\u9632\u706b\u5899\u670d\u52a1\u7684\u7b56\u7565\u7ba1\u7406\u5de5\u5177\uff0c\u53ea\u662fTCP\/IP\u534f\u8bae\u4e0d\u540c\u800c\u5df2\uff0c\u56e0\u6b64\u672c\u8bcd\u6761\u4e0d\u518d\u91cd\u590d\uff0c\u5982\u6709\u9700\u8981\u8bf7\u53c2\u9605\u4e66\u7c4d\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7b2c8\u7ae0\u8282<\/a>\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>ip6tables [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-A<\/td>\u5411\u89c4\u5219\u94fe\u4e2d\u6dfb\u52a0\u6761\u76ee<\/td><\/tr>
-D<\/td>\u4ece\u89c4\u5219\u94fe\u4e2d\u5220\u9664\u6761\u76ee<\/td><\/tr>
-i<\/td>\u5411\u89c4\u5219\u94fe\u4e2d\u63d2\u5165\u6761\u76ee<\/td><\/tr>
-L<\/td>\u663e\u793a\u89c4\u5219\u94fe\u4e2d\u5df2\u6709\u7684\u6761\u76ee<\/td><\/tr>
-F<\/td>\u6e05\u695a\u89c4\u5219\u94fe\u4e2d\u5df2\u6709\u7684\u6761\u76ee<\/td><\/tr>
-p<\/td>\u6307\u5b9a\u8981\u5339\u914d\u7684\u6570\u636e\u5305\u534f\u8bae\u7c7b\u578b<\/td><\/tr>
-s<\/td>\u6307\u5b9a\u8981\u5339\u914d\u7684\u6570\u636e\u5305\u6e90ip\u5730\u5740<\/td><\/tr>
-j<\/td>\u6307\u5b9a\u8981\u8df3\u8f6c\u7684\u76ee\u6807<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u770b\u5f53\u524d\u7684 IPv6 \u9632\u706b\u5899\u7b56\u7565\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ip6tables -L<\/strong>      <\/pre>\n\n\n\n

\u67e5\u770b\u5f53\u524d\u7684 IPv6 \u9632\u706b\u5899\u7b56\u7565\u4fe1\u606f\u5e76\u663e\u793a\u884c\u53f7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ip6tables -nL --line-numbers<\/strong><\/pre>\n\n\n\n

\u6e05\u7a7a\u5f53\u524d\u7684 IPv6 \u9632\u706b\u5899\u7b56\u7565\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ip6tables -F<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

ip6tables\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cipv6 iptables\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8eIpv6\u7ea7\u522b\u7684\u9632\u706b\u5899\u7b56\u7565 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4702"}],"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=4702"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4702\/revisions"}],"predecessor-version":[{"id":10157,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4702\/revisions\/10157"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}