{"id":68596,"date":"2023-08-01T02:28:12","date_gmt":"2023-07-31T18:28:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=68596"},"modified":"2023-08-01T02:28:12","modified_gmt":"2023-07-31T18:28:12","slug":"centos-firewall","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos-firewall.html","title":{"rendered":"CentOS \u5982\u4f55\u914d\u7f6e\u9632\u706b\u5899\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u4e00\u4e0b\u5728Centos\u7cfb\u7edf\u4e2d\u914d\u7f6e\u9632\u706b\u5899\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u5e2e\u52a9\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u9632\u706b\u5899\u7684\u57fa\u672c\u64cd\u4f5c\u547d\u4ee4<\/strong><\/div>\n
1. \u67e5\u8be2\u9632\u706b\u5899\u72b6\u6001: <\/strong><\/span><\/div>\n
[root@localhost ~]# service iptables status\r\n<\/pre>\n
2. \u5f00\u542f\u9632\u706b\u5899: <\/strong><\/span><\/div>\n
[root@localhost ~]# service iptables start\r\n<\/pre>\n
3. \u5173\u95ed\u9632\u706b\u5899: <\/strong><\/span><\/div>\n
[root@localhost ~]# service iptables stop\r\n<\/pre>\n
4. \u91cd\u542f\u9632\u706b\u5899: <\/strong><\/span><\/div>\n
[root@localhost ~]# service iptables restart\r\n<\/pre>\n
5. \u6c38\u4e45\u5173\u95ed\u9632\u706b\u5899: <\/strong><\/span><\/div>\n
[root@localhost ~]# chkconfig iptables off\r\n<\/pre>\n
6. \u6c38\u4e45\u5173\u95ed\u540e\u5f00\u542f\u9632\u706b\u5899: <\/strong><\/span><\/div>\n
[root@localhost ~]# chkconfig iptables off\r\n<\/pre>\n
\u8865\u5145 <\/strong><\/span><\/div>\n

\u7f16\u8f91\/etc\/sysconfig\/iptables\u6587\u4ef6\uff0c\u53ef\u4ee5\u914d\u7f6e\u4e0d\u540c\u7aef\u53e3\u7684\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.centoscn.com\/CentOS\/config\/2017\/0520\/8799.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/centos-firewall.html<\/a>\u7f16\u8f91\uff1a\u738b\u6bc5\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u4e00\u4e0b\u5728Centos\u7cfb\u7edf\u4e2d\u914d\u7f6e\u9632\u706b\u5899\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u5e2e\u52a9\u3002 \u9632\u706b\u5899\u7684\u57fa\u672c\u64cd\u4f5c\u547d\u4ee4 1. \u67e5\u8be2\u9632\u706b […]<\/p>\n","protected":false},"author":564,"featured_media":68600,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-68596","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/68596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/564"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=68596"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/68596\/revisions"}],"predecessor-version":[{"id":279064,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/68596\/revisions\/279064"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/68600"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=68596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=68596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=68596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}