Ubuntu系统
开放所有端口
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
关闭或强制删除防火墙
apt-get purge netfilter-persistent && reboot
或 rm -rf /etc/iptables && 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
systemctl disable firewalld.service
Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent reboot
或者强制删除
rm -rf /etc/iptables && reboot
一些事,想了很久,依然觉得很纠结很困惑,…
人生这套题,说难也难,说简单也简单,就看…