Ubuntu系统下

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

关闭Ubuntu镜像下的iptable规则:

apt-get purge netfilter-persistent
reboot

或者强制删除它

apt-get purge netfilter-persistent
reboot

Centos系统下

删除多余附件

systemctl stop oracle-cloud-agent
systemctl disable oracle-cloud-agent
systemctl stop oracle-cloud-agent-updater
systemctl disable oracle-cloud-agent-updater

停止Firewall

systemctl stop firewalld.service

禁用Firewall开机启动

systemctl disable firewalld.service

谁知我这种人