赞
踩
systemctl status firewalld
service iptables status
systemctl stop firewalld
service iptables stop
systemctl disable firewalld
chkconfig iptables off
已永久关闭状态:
systemctl enable firewalld
service iptables restart
如果你使用 iptables,可以使用以下命令启动防火墙:
sudo service iptables start
或者,根据系统的不同,也可以使用:
sudo systemctl start iptables
firewalld 防火墙:
如果你使用 firewalld,可以使用以下命令启动防火墙:
sudo systemctl start firewalld
UFW(Uncomplicated Firewall):
在一些基于 Debian 或 Ubuntu 的系统中,可能使用 ufw 工具管理防火墙。启动 ufw 可以使用以下命令:
sudo ufw enable
这些命令会在当前会话中启动防火墙。
但是如果你要设置在系统启动时自动启动防火墙
,需要使用 enable 命令:
chkconfig iptables on
sudo systemctl enable iptables
或
sudo systemctl enable firewalld
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。