Oracle甲骨文开放全部端口后续关闭防火墙

[复制链接]
查看: 589   回复: 0
发表于 2022-2-11 17:35:42 | 显示全部楼层 |阅读模式

删除、关闭、打开各自系统的无用附件、防火墙、端口及规则

1、Ubuntu系统下:

开放所有端口

  1. iptables -P INPUT ACCEPT
  2. iptables -P FORWARD ACCEPT
  3. iptables -P OUTPUT ACCEPT
  4. iptables -F
复制代码


Ubuntu镜像默认设置了Iptable规则,关闭它

  1. apt-get purge netfilter-persistent
  2. reboot
复制代码


或者强制删除

  1. rm -rf /etc/iptables && reboot
复制代码


2、Centos系统下:

删除多余附件

  1. systemctl stop oracle-cloud-agent
  2. systemctl disable oracle-cloud-agent
  3. systemctl stop oracle-cloud-agent-updater
  4. systemctl disable oracle-cloud-agent-updater
复制代码


停止firewall

  1. systemctl stop firewalld.service
复制代码


禁止firewall开机启动

  1. systemctl disable firewalld.service
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则