From 84940f1067e3e76858fa6923778625419d387869 Mon Sep 17 00:00:00 2001 From: kircher Date: Mon, 15 Aug 2022 15:42:23 +0800 Subject: [PATCH] fix failed message when stop iptables service --- iptables.init | 6 ++++++ iptables.spec | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/iptables.init b/iptables.init index ceb6bbe..3f79078 100644 --- a/iptables.init +++ b/iptables.init @@ -123,6 +123,12 @@ set_policy() { for i in $tables; do echo -n "$i " case "$i" in + security) + $IPTABLES -t filter -P INPUT $policy \ + && $IPTABLES -t filter -P OUTPUT $policy \ + && $IPTABLES -t filter -P FORWARD $policy \ + || let ret+=1 + ;; raw) $IPTABLES -t raw -P PREROUTING $policy \ && $IPTABLES -t raw -P OUTPUT $policy \ diff --git a/iptables.spec b/iptables.spec index c7189cf..fe547bf 100644 --- a/iptables.spec +++ b/iptables.spec @@ -2,7 +2,7 @@ %global legacy_actions %{_libexecdir}/initscripts/legacy-actions Name: iptables Version: 1.8.7 -Release: 8 +Release: 9 Summary: IP packet filter administration utilities License: GPLv2 and Artistic Licence 2.0 and ISC URL: https://www.netfilter.org/ @@ -317,6 +317,12 @@ fi %{_mandir}/man8/xtables-legacy* %changelog +* Mon Aug 15 2022 kircher - 1.8.7-9 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix failed message when stop iptables service + * Fri Jul 29 2022 huangyu - 1.8.7-8 - DESC:update release version to 1.8.7-8 -- Gitee