{"id":7828,"date":"2020-05-26T09:01:33","date_gmt":"2020-05-26T01:01:33","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7828"},"modified":"2020-05-26T09:01:34","modified_gmt":"2020-05-26T01:01:34","slug":"esxcfg-firewall","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/esxcfg-firewall","title":{"rendered":"esxcfg-firewall\u547d\u4ee4 – \u9632\u706b\u5899\u8bbe\u7f6e"},"content":{"rendered":"\n

esxcfg\u547d\u4ee4\u96c6\u5206\u4e3a\u7f51\u7edc\u7ba1\u7406\u7c7b\u3001\u5b58\u50a8\u7ba1\u7406\u7c7b\u3001\u7cfb\u7edf\u7ba1\u7406\u7c7b\u7b49\u51e0\u79cd\u7c7b\u578b\uff0cESX Server\u9632\u706b\u5899\u4f7f\u7528\u5185\u7f6e\u7684iptables\uff0c\u5f88\u5e38\u7528\u7684Linux\u9632\u706b\u5899\u3002\u7136\u800c\u4f7f\u7528\u5176\u4ed6esxcfg\u5de5\u5177\u521b\u5efa\u89c4\u5219\uff0c\u5b83\u5c31\u662fesxcfg-firewall\u3002esxcfg-firewall\u8d1f\u8d23\u914d\u7f6eESX\u4e3b\u673a\u4e0a\u7684\u7f51\u7edc\u9632\u706b\u5899\uff0c\u5c5e\u4e8e\u7f51\u7edc\u7ba1\u7406\u7c7b\u3002<\/p>\n\n\n\n

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

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

-h<\/td>\u67e5\u770b\u5e2e\u52a9\u6587\u6863<\/td><\/tr>
-l<\/td>\u663e\u793a\u5f53\u524d\u7684\u7f51\u7edc\u914d\u7f6e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u663e\u793a\u5f53\u524d\u7684\u7f51\u7edc\u914d\u7f6e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-firewall -l<\/pre>\n\n\n\n

\u5217\u51fa\u5f53\u524d\u8282\u70b9\u6240\u6709\u7684\u7f51\u7edc\u670d\u52a1\uff1a<\/p>\n\n\n\n

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

\u963b\u585e\u7279\u5b9a\u7684\u670d\u52a1\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-firewall -d<\/pre>\n\n\n\n

\u91cd\u7f6e\u670d\u52a1\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-firewall -r<\/pre>\n\n\n\n

\u67e5\u770b\u5e2e\u52a9\u6587\u6863\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-firewall -help<\/pre>\n","protected":false},"excerpt":{"rendered":"

esxcfg\u547d\u4ee4\u96c6\u5206\u4e3a\u7f51\u7edc\u7ba1\u7406\u7c7b\u3001\u5b58\u50a8\u7ba1\u7406\u7c7b\u3001\u7cfb\u7edf\u7ba1\u7406\u7c7b\u7b49\u51e0\u79cd\u7c7b\u578b\uff0cESX Server\u9632\u706b\u5899\u4f7f\u7528\u5185\u7f6e\u7684ipt […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7828"}],"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=7828"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7828\/revisions"}],"predecessor-version":[{"id":7836,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7828\/revisions\/7836"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}