一、進入自己的實例氓涣,設(shè)置子網(wǎng)
開放所有端口牛哺,當然也可以設(shè)置需要開放的端口
二、刪除劳吠、關(guān)閉引润、打開各自系統(tǒng)的無用附件、防火墻痒玩、端口及規(guī)則
Ubuntu系統(tǒng)下:
開放所有端口
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
Ubuntu鏡像默認設(shè)置了Iptable規(guī)則淳附,關(guān)閉它
apt-get purge netfilter-persistent
reboot
或者強制刪除
rm -rf /etc/iptables && reboot
Centos系統(tǒng)下:
刪除多余附件
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