diff --git a/iptables.init b/iptables.init index ceb6bbe64590ece1fd2471950da34b75d0170a31..3f790780ecfc5bf6ddf9d13910ced9c3309455f7 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 ec868b25ebe0d39cc58fced5b08d4ef6d80140b8..6f6c03f3a16ae7e656e0d23d5edb9307ed138c70 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: 6 +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 seuzw <930zhaowei@163.com> - 1.8.7-9 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix failed message when stop iptables service + * Thu Jun 30 2022 xingwei - 1.8.7-6 - Type:bugfix - ID:NA