Loading... Oracle Cloud甲骨文免费VPS在创建vps后如果需要提供服务,需要对防火墙进行设置。 1、在子网中的安全列表中对入口规则和出口规则进行更改,对0.0.0.0/0的所有协议进行放行。 2、做完第一步是对网络的防火墙打开了,但是vps搭建的服务还是不能连接,需要对vpc机器的防火墙进行设置: #开放所有端口 ``` sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT sudo iptables -F ``` #Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它 ``` apt-get purge netfilter-persistent reboot ``` #强制删除 ``` rm -rf /etc/iptables && reboot ``` <hr class="content-copyright" style="margin-top:50px" /><blockquote class="content-copyright" style="font-style:normal"><p class="content-copyright">版权属于:大漠孤狼</p><p class="content-copyright">本文链接:<a class="content-copyright" href="https://www.dmgls.com/1326.html">https://www.dmgls.com/1326.html</a></p><p class="content-copyright">转载时须注明出处及本声明</p></blockquote> Last modification:March 31st, 2022 at 10:23 am © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 Appreciate the author
One comment
文章内容加载不出来了,一直是 loading 转圈