{"id":548632,"date":"2021-12-24T05:55:25","date_gmt":"2021-12-23T21:55:25","guid":{"rendered":"http:\/\/4563.org\/?p=548632"},"modified":"2021-12-24T05:55:25","modified_gmt":"2021-12-23T21:55:25","slug":"%e5%85%b3%e4%ba%8e-orcale-cloud-centos8-%e7%9a%84-iptables","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=548632","title":{"rendered":"\u5173\u4e8e Orcale cloud centos8 \u7684 iptables"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>yanqing001<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5173\u4e8e Orcale cloud centos8 \u7684 iptables<\/h3>\n<p>  \t\tOracle \u7684 centos8 \u955c\u50cf\u9ed8\u8ba4\u540c\u65f6\u5e26\u4e86 firewall \u8ddf iptables \u5e76\u4e14\u5728 iptables \u91cc\u9762\u5e26\u4e86\u5f88\u591a\u89c4\u5219\uff0c\u5bfc\u81f4\u5927\u591a\u6570\u7aef\u53e3\u90fd\u88ab\u7981\u6b62<\/p>\n<p>  \u901a\u8fc7sudo iptables \u2013F \u547d\u4ee4\u53ef\u4ee5 \u5f00\u53d1\u6240\u6709\u7aef\u53e3<\/p>\n<p>  \u4f46\u662f\u6bcf\u6b21\u91cd\u542f\u540e\u5b83\u53c8\u4f1a\u6062\u590d<\/p>\n<p>  \u8ba8\u538c\u7684\u662f Oracle \u5bb6\u7684\u955c\u50cf\u4e0d\u540c\u4e8e\u5176\u4ed6\u7684 CentOS<\/p>\n<p>  service \u91cc\u9762\u6ca1\u6709iptables \u7684\u670d\u52a1<br \/>  \u6ca1\u529e\u6cd5\u901a\u8fc7 \u4e0b\u9762\u547d\u4ee4\u7981\u6b62<\/p>\n<p>  systemctl stop firewalld.service<br \/>  systemctl disable firewalld.service<\/p>\n<p>  \u6211\u4e5f\u627e\u4e0d\u5230 \u6301\u4e45\u5316\u4fee\u6539\u540e\u7684 iptables \u7684\u529e\u6cd5<\/p>\n<p>  \u8bf7\u6559\u5404\u4f4d\u5927\u4f6c\uff0c\u600e\u4e48\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5378\u8f7d\u4e86\u5c31\u884c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Laden<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tdd\u540e\u88c5\u6781\u5149\u9762\u677f \u4e00\u952e\u5f00\u542f\u8f6c\u53d1\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hostvac<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\toptimism \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-23 21:55<br \/>  \u5378\u8f7d\u4e86\u5c31\u884c<\/p>\n<p> \u8fd9\u673a\u5668\u4eba\u633a\u667a\u80fd\u554a\uff0c\u5c01\u4e86\u53ef\u60dc\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>telnetpig<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tiptables -F \u6e05\u7a7a\u9632\u706b\u5899<\/p>\n<p>  \u4fee\u6539\u5b8c\u89c4\u5219\u540e\uff0c\u5c06\u89c4\u5219\u4fdd\u5b58\u5230\u6587\u4ef6\uff0c\u4f4d\u7f6e\u6839\u636e\u9700\u8981\u53ef\u4ee5\u6539<\/p>\n<p>  iptables-save &gt; \/root\/iptables.conf<br \/>  \u5f00\u673a\u81ea\u52a8\u6062\u590d\uff0c\u5728\/etc\/rc.d\/rc.local\u6dfb\u52a0<br \/>  iptables-restore &lt; \/root\/iptables.conf<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hostvac<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u6ca1\u4fdd\u5b58\uff0c\u6700\u540e\u8f93\u8fd9\u4e2a<\/p>\n<p>  service iptables save\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yanqing001<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thostvac \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-23 22:03<br \/>  \u4f60\u6ca1\u4fdd\u5b58\uff0c\u6700\u540e\u8f93\u8fd9\u4e2a<\/p>\n<p>  service iptables save<\/p>\n<p> \u4f60\u6ca1\u770b\u660e\u767d\u6211\u7684\u95ee\u9898<br \/>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>  \u6ca1\u6709 iptables \u8fd9\u4e2a\u670d\u52a1<br \/>  \u6211\u4e5f\u4e0d\u77e5\u9053 oracle \u600e\u4e48\u9b54\u6539\u7684\u7cfb\u7edf<\/p>\n<p>  # service iptables save<br \/>  The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.<br \/>  # service iptables reload<br \/>  Redirecting to \/bin\/systemctl reload iptables.service<br \/>  Failed to reload iptables.service: Unit iptables.service not found.  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yanqing001<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\ttelnetpig \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-23 22:03<br \/>  iptables -F \u6e05\u7a7a\u9632\u706b\u5899<\/p>\n<p>  \u4fee\u6539\u5b8c\u89c4\u5219\u540e\uff0c\u5c06\u89c4\u5219\u4fdd\u5b58\u5230\u6587\u4ef6\uff0c\u4f4d\u7f6e\u6839\u636e\u9700\u8981\u53ef\u4ee5\u6539<\/p>\n<p> \u8fd9\u65b9\u6cd5\u6ca1\u7528\uff0c\u91cd\u542f\u540e \u5b83\u4f1a\u628a\u81ea\u5df1\u9ed8\u8ba4\u7684\u89c4\u5219\u5199\u8fdb\u53bb \uff01\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>meta<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u76f4\u63a5 dd \u65b0\u7cfb\u7edf\uff0c\u4e00\u4e86\u767e\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hostvac<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tyanqing001 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-23 22:53<br \/>  \u4f60\u6ca1\u770b\u660e\u767d\u6211\u7684\u95ee\u9898<br \/>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>  \u6ca1\u6709 iptables \u8fd9\u4e2a\u670d\u52a1<\/p>\n<p> \u6211\u4e5f\u7528\u7684Oracle Linux\uff0c\u6ca1\u95ee\u9898\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>yanqing001 \u5927\u4f6c\u6709\u8bdd\u8bf4 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/548632"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=548632"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/548632\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=548632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=548632"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=548632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}