
在Ubuntu 16.04中,我们可以安装firewalld服务吗?
答案1
要切换,请执行以下操作:
如果正在使用,请停止 iptables:
sudo systemctl stop iptables
确保iptables您的系统不再使用:
sudo systemctl mask iptables
检查其状态:
sudo systemctl status iptables
消除联邦水务局如果已安装:
sudo apt-get remove ufw
防火墙 -动态防火墙管理器
这将取代iptable作为管理防火墙的首选方式。要使用的命令防火墙包括:
安装
firewalld
:sudo apt install firewalld
检查其状态:
sudo systemctl status firewalld
启用或禁用防火墙:
sudo systemctl [enable | disable ] firewalld
启动和停止它:
sudo systemctl [ start | stop ] firewalld
因此使用它只需像步骤 2,然后使用手册页以获取更多信息。
看这里有关如何使用的更多信息防火墙