发新话题
打印

linux firewalld常用命令

linux firewalld常用命令

systemctl enable firewalld

systemctl disable firewalld

systemctl start firewalld

systemctl stop firewalld

systemctl status firewalld

firewall-cmd --state

firewall-cmd --list-all

#停止firewall
systemctl stop firewalld.service

#禁止firewall开机启动
systemctl disable firewalld.service

#查看iptabels规则
iptables -L

#查看iptabels chains
iptables -S

-F : Deleting (flushing) all the rules.
-X : Delete chain.

[ 本帖最后由 linda 于 2023-10-26 16:42 编辑 ]

TOP

发新话题