From cb1267a9e40a7a2fd8b86fdd14b705a8f1e465e2 Mon Sep 17 00:00:00 2001 From: lion187 Date: Mon, 21 Oct 2019 22:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=5Ffirewalld=5F=E6=9E=84=E5=BB=BA=5FLinux=5F?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E9=98=B2=E7=81=AB=E5=A2=99.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Firewall/使用_firewalld_构建_Linux_动态防火墙.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/Applications/Firewall/使用_firewalld_构建_Linux_动态防火墙.md b/Software/Applications/Firewall/使用_firewalld_构建_Linux_动态防火墙.md index 447f10f..909bcd8 100644 --- a/Software/Applications/Firewall/使用_firewalld_构建_Linux_动态防火墙.md +++ b/Software/Applications/Firewall/使用_firewalld_构建_Linux_动态防火墙.md @@ -11,13 +11,13 @@ 添加/删除/查询服务命令如下: firewall-cmd --permanent --add-port=8080/tcp - firewall-cmd --remove-port=8080/udp + firewall-cmd --permanent --remove-port=8080/udp firewall-cmd --query-port=8080/tcp 添加/删除/查询端口命令如下: firewall-cmd --permanent --add-service=ssh - firewall-cmd --remove-service=samba + firewall-cmd --permanent --remove-service=samba firewall-cmd --query-service=ssh 参数 --permanent 表示进行的是永久性配置(默认为临时配置,重启后失效)。