Oracle Cloud Ubuntu 20.04 防火墙设置

2021 年 8 月 19 日 星期四
/
18

Oracle Cloud Ubuntu 20.04 防火墙设置

通过常用命令并不能关闭防火墙

在控制面板开放端口后通过以下命令即可关闭系统防火墙

sudo su
iptables -D INPUT -j REJECT --reject-with icmp-host-prohibited
iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited
/etc/init.d/netfilter-persistent save
/etc/init.d/netfilter-persistent reload
  • Loading...
  • Loading...
  • Loading...
  • Loading...
  • Loading...