{"id":4215,"date":"2019-07-26T00:06:52","date_gmt":"2019-07-25T16:06:52","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4215"},"modified":"2019-07-26T00:07:13","modified_gmt":"2019-07-25T16:07:13","slug":"iptstate","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/iptstate","title":{"rendered":"iptstate\u547d\u4ee4 – \u4ee5top\u98ce\u683c\u663e\u793a\u5185\u6838\u7684iptables\u72b6\u6001"},"content":{"rendered":"\n

iptstate\u547d\u4ee4\u4ee5top\u547d\u4ee4\u7c7b\u4f3c\u7684\u98ce\u683c\u5b9e\u65f6\u663e\u793aLinux\u5185\u6838\u4e2diptables\u7684\u5de5\u4f5c\u72b6\u6001\u3002\u8f93\u51fa\u4fe1\u606f\u53ef\u4ee5\u4ee5\u4efb\u4f55\u5b57\u6bb5\u8fdb\u884c\u6392\u5e8f\uff0c\u53ef\u4ee5\u5b9a\u4e49\u72b6\u6001\u5237\u65b0\u7684\u9891\u7387\u548c\u5355\u6b21\u663e\u793a\u72b6\u6001\u4fe1\u606f\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f: <\/strong> iptstate [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-b<\/td>\u6307\u5b9a\u8f93\u51fa\u4fe1\u606f\u7684\u6392\u5e8f\u89c4\u5219<\/td><\/tr>
-d<\/td>\u4e0d\u52a8\u6001\u7684\u6539\u53d8\u7a97\u53e3\u5927\u5c0f<\/td><\/tr>
-f<\/td>\u8fc7\u6ee4\u672c\u5730\u56de\u9001\u6d88\u606f<\/td><\/tr>
-h<\/td>\u663e\u793a\u5e2e\u52a9\u6d88\u606f<\/td><\/tr>
-l<\/td>\u5c06IP\u5730\u5740\u89e3\u6790\u4e3a\u57df\u540d<\/td><\/tr>
-L<\/td>\u9690\u85cf\u4e8eDNS\u67e5\u8be2\u76f8\u5173\u7684\u72b6\u6001<\/td><\/tr>
-r<\u79d2\u6570><\/td>\u6307\u5b9a\u5237\u65b0\u5c4f\u5e55\u7684\u9891\u7387<\/td><\/tr>
-R<\/td>\u53cd\u5e8f\u6392\u5e8f<\/td><\/tr>
-s<\/td>\u5355\u6b21\u8fd0\u884c\u6a21\u5f0f\uff0c\u4ec5\u6253\u5370\u4e00\u6b21\u72b6\u6001\u4fe1\u606f<\/td><\/tr>
-t<\/td>\u663e\u793a\u6c47\u603b\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u4ee5top\u98ce\u683c\u5b9e\u65f6\u663e\u793aiptables\u7684\u5de5\u4f5c\u72b6\u6001\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iptstate<\/pre>\n\n\n\n

\u663e\u793a\u6c47\u603b\u6d88\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iptstate -t<\/pre>\n\n\n\n

\u6307\u5b9a\u5c4f\u5e55\u5237\u65b0\u7684\u9891\u7387\u4e3a5\u79d2\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iptstate -r 5<\/pre>\n\n\n\n

\u6253\u5370\u72b6\u6001\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iptstate -s<\/pre>\n\n\n\n

<\/p>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

iptstate\u547d\u4ee4\u4ee5top\u547d\u4ee4\u7c7b\u4f3c\u7684\u98ce\u683c\u5b9e\u65f6\u663e\u793aLinux\u5185\u6838\u4e2diptables\u7684\u5de5\u4f5c\u72b6\u6001\u3002\u8f93\u51fa\u4fe1\u606f\u53ef\u4ee5\u4ee5\u4efb […]<\/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\/4215"}],"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=4215"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4215\/revisions"}],"predecessor-version":[{"id":4246,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4215\/revisions\/4246"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}