!58 fix failed message when stop iptables service
From: @seuzw Reviewed-by: @kircher Signed-off-by: @kircher
This commit is contained in:
commit
0b555124b6
@ -123,6 +123,12 @@ set_policy() {
|
|||||||
for i in $tables; do
|
for i in $tables; do
|
||||||
echo -n "$i "
|
echo -n "$i "
|
||||||
case "$i" in
|
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)
|
raw)
|
||||||
$IPTABLES -t raw -P PREROUTING $policy \
|
$IPTABLES -t raw -P PREROUTING $policy \
|
||||||
&& $IPTABLES -t raw -P OUTPUT $policy \
|
&& $IPTABLES -t raw -P OUTPUT $policy \
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
%global legacy_actions %{_libexecdir}/initscripts/legacy-actions
|
%global legacy_actions %{_libexecdir}/initscripts/legacy-actions
|
||||||
Name: iptables
|
Name: iptables
|
||||||
Version: 1.8.7
|
Version: 1.8.7
|
||||||
Release: 6
|
Release: 9
|
||||||
Summary: IP packet filter administration utilities
|
Summary: IP packet filter administration utilities
|
||||||
License: GPLv2 and Artistic Licence 2.0 and ISC
|
License: GPLv2 and Artistic Licence 2.0 and ISC
|
||||||
URL: https://www.netfilter.org/
|
URL: https://www.netfilter.org/
|
||||||
@ -317,6 +317,12 @@ fi
|
|||||||
%{_mandir}/man8/xtables-legacy*
|
%{_mandir}/man8/xtables-legacy*
|
||||||
|
|
||||||
%changelog
|
%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 <xingwei14@h-partners.com> - 1.8.7-6
|
* Thu Jun 30 2022 xingwei <xingwei14@h-partners.com> - 1.8.7-6
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user