何故

  • 首页
  • Office技巧
  • Linux
  • Python
  • 关于
  1. 首页
  2. 懒癌日记
  3. 正文

oracle cloud 关闭防火墙

2022年5月7日 6494点热度 0人点赞 0条评论

centos操作如下:

停止firewall

systemctl stop firewalld.service

禁止firewall开机启动

systemctl disable firewalld.service

关闭iptables

service iptables stop

去掉iptables开机启动

chkconfig iptables off
oracle Linux操作如下:

停止firewall

systemctl stop firewalld.service

禁止firewall开机启动

systemctl disable firewalld.service
ubuntu操作如下:

Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它

apt-get purge netfilter-persistent
reboot

强制删除

rm -rf /etc/iptables && reboot

最关键一步

sudo uwf status

这条命令是查看当前开放的端口

sudo uwf disable

这条命令是关闭防火墙

增加一个方式:

sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEP
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F

标签: 暂无
最后更新:2024年11月27日

大魔王

如你所见,有些才华横溢出了屏幕

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2024 何故. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

滇ICP备20001921号-1

滇公网安备53262102000532号