{"id":36,"date":"2025-09-10T09:20:44","date_gmt":"2025-09-10T01:20:44","guid":{"rendered":"https:\/\/blog.970515.xyz\/?p=36"},"modified":"2025-09-10T09:20:44","modified_gmt":"2025-09-10T01:20:44","slug":"%e7%94%b2%e9%aa%a8%e6%96%87%e4%ba%91%ef%bc%88oracle-cloud%ef%bc%89vps-%e4%b8%8a%e5%bc%80%e6%94%be%e7%ab%af%e5%8f%a3","status":"publish","type":"post","link":"https:\/\/blog.970515.xyz\/index.php\/2025\/09\/10\/%e7%94%b2%e9%aa%a8%e6%96%87%e4%ba%91%ef%bc%88oracle-cloud%ef%bc%89vps-%e4%b8%8a%e5%bc%80%e6%94%be%e7%ab%af%e5%8f%a3\/","title":{"rendered":"\u7532\u9aa8\u6587\u4e91\uff08Oracle Cloud\uff09VPS \u4e0a\u5f00\u653e\u7aef\u53e3"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u7532\u9aa8\u6587\u63a7\u5236\u53f0\u653e\u884c\u7aef\u53e3<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u767b\u5f55 <a>Oracle Cloud \u63a7\u5236\u53f0<\/a>\u3002<\/li>\n\n\n\n<li>\u5de6\u4fa7\u83dc\u5355 \u2192 <strong>\u8ba1\u7b97\uff08Compute\uff09<\/strong> \u2192 <strong>\u5b9e\u4f8b\uff08Instances\uff09<\/strong> \u2192 \u9009\u62e9\u4f60\u7684\u5b9e\u4f8b\u3002<\/li>\n\n\n\n<li>\u627e\u5230\u5b9e\u4f8b\u7ed1\u5b9a\u7684 <strong>\u5b50\u7f51\uff08VCN \u5b50\u7f51\uff09<\/strong>\uff0c\u70b9\u51fb\u8fdb\u5165\u3002<\/li>\n\n\n\n<li>\u5728\u5b50\u7f51\u9875\u9762\u91cc\uff0c\u627e\u5230 <strong>\u5b89\u5168\u5217\u8868\uff08Security Lists\uff09<\/strong> \u6216\u8005\u4f60\u7ed1\u5b9a\u7684 <strong>\u7f51\u7edc\u5b89\u5168\u7ec4\uff08NSG\uff09<\/strong>\u3002<\/li>\n\n\n\n<li>\u6dfb\u52a0\u4e00\u6761 <strong>\u5165\u7ad9\u89c4\u5219\uff08Ingress Rule\uff09<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>\u6e90\uff1a<code>0.0.0.0\/0<\/code>\uff08\u5bf9\u6240\u6709\u516c\u7f51 IP \u5f00\u653e\uff09<\/li>\n\n\n\n<li>\u534f\u8bae\uff1a\u9009\u62e9 <code>TCP<\/code> \u6216 <code>UDP<\/code>\uff08\u770b\u4f60\u7a0b\u5e8f\u9700\u8981\uff0c\u6bd4\u5982 X-UI \u5e38\u7528 TCP\uff0cHysteria2 \u7528 UDP\uff09<\/li>\n\n\n\n<li>\u76ee\u6807\u7aef\u53e3\uff1a\u586b\u5199\u4f60\u8981\u7528\u7684\u7aef\u53e3\uff0c\u6bd4\u5982 <code>29954<\/code>\uff0c\u6216\u8005\u8303\u56f4 <code>10000-20000<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u670d\u52a1\u5668\u5185\u90e8\u653e\u884c\u7aef\u53e3<\/strong><\/h2>\n\n\n\n<p>\u4e0d\u540c\u7cfb\u7edf\u53ef\u80fd\u6709\u9632\u706b\u5899\uff0c\u5efa\u8bae\u4e5f\u653e\u884c\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Debian \/ Ubuntu<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># TCP \u7aef\u53e3\nsudo iptables -A INPUT -p tcp --dport 29954 -j ACCEPT\n\n# UDP \u7aef\u53e3\nsudo iptables -A INPUT -p udp --dport 29954 -j ACCEPT\n\n# \u4fdd\u5b58\u89c4\u5219\uff08Debian\/Ubuntu\uff09\nsudo apt install iptables-persistent -y\nsudo netfilter-persistent save\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>CentOS \/ Rocky \/ Alma<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5f00\u653e\u7aef\u53e3\nsudo firewall-cmd --zone=public --add-port=29954\/tcp --permanent\nsudo firewall-cmd --zone=public --add-port=29954\/udp --permanent\n\n# \u91cd\u8f7d\nsudo firewall-cmd --reload\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u26a0\ufe0f \u6ce8\u610f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7532\u9aa8\u6587\u9ed8\u8ba4 <strong>\u6240\u6709\u7aef\u53e3\u662f\u5173\u95ed\u7684<\/strong>\uff0c\u5fc5\u987b\u5148\u5728\u63a7\u5236\u53f0\u5b89\u5168\u7ec4\u91cc\u653e\u884c\uff0c\u5426\u5219 VPS \u91cc\u5f00\u4e86\u4e5f\u6ca1\u7528\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u4f60\u662f\u505a\u4e2d\u8f6c\u673a\uff08X-UI\uff09+ \u843d\u5730\u673a\uff08Hysteria2\uff09\uff0c\u4e2d\u8f6c\u673a\u548c\u843d\u5730\u673a\u90fd\u8981\u653e\u884c\u5bf9\u5e94\u7aef\u53e3\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7532\u9aa8\u6587\u63a7\u5236\u53f0\u653e\u884c\u7aef\u53e3 \u4e8c\u3001\u670d\u52a1\u5668\u5185\u90e8\u653e\u884c\u7aef\u53e3 \u4e0d\u540c\u7cfb\u7edf\u53ef\u80fd\u6709\u9632\u706b\u5899\uff0c\u5efa\u8bae\u4e5f\u653e\u884c\u4e00\u4e0b\uff1a Debian \/ U [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":1,"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.970515.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}