刚薅到的Oracle VPS,在刚开始搭建需求环境的时候发现端口全关,不管是从Cloud管理台设置安全组开放指定端口还是ufw去allow都没用,简直无语。 最后粗暴解决,不明白Oracle的镜像为毛要粗暴的把端口都关了,就算关了,用户自己启用ufw就应该可以开放,结果iptables给弄默认,太不友好,既然云都有网络安全组,VPS里的端口就应该默认全开,让用户自己选择管理 ```shell sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT reboot #或者直接 sudo iptables -F sudo apt-get purge netfilter-persistent -y reboot ``` Last modification:March 12, 2022 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 If you think my article is useful to you, please feel free to appreciate
One comment
文章的叙述风格独特,用词精准,让人回味无穷。