ALT Linux Bugzilla
– Attachment 2206 Details for
Bug 12869
service iptables stop не выгружает модули ядра
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
iptables.diff
iptables.diff (text/plain), 1.23 KB, created by
Dmitry V. Levin
on 2007-09-21 18:37:30 MSD
(
hide
)
Description:
iptables.diff
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2007-09-21 18:37:30 MSD
Size:
1.23 KB
patch
obsolete
>diff --git a/iptables.init b/iptables.init >index 5cef28a..cc34783 100755 >--- a/iptables.init >+++ b/iptables.init >@@ -147,7 +147,6 @@ flush_delete() > printf %s "$i " > $IPTABLES -t $i -F || RETVAL=1 > done >- $IPTABLES -F || RETVAL=1 > [ "$RETVAL" -eq 0 ] && > success "Flushing firewall rules" || > failure "Flushing firewall rules" >@@ -159,7 +158,6 @@ flush_delete() > printf %s "$i " > $IPTABLES -t $i -X || RETVAL=1 > done >- $IPTABLES -X || RETVAL=1 > [ "$RETVAL" -eq 0 ] && > success "Removing user defined chains" || > failure "Removing user defined chains" >@@ -171,7 +169,6 @@ flush_delete() > printf %s "$i " > $IPTABLES -t $i -Z || RETVAL=1 > done >- $IPTABLES -Z || RETVAL=1 > [ "$RETVAL" -eq 0 ] && > success "Zeroing packet and byte counters" || > failure "Zeroing packet and byte counters" >@@ -179,6 +176,17 @@ flush_delete() > return $RETVAL > } > >+unload_modules() >+{ >+ local t >+ >+ for t in $tables; do >+ local m="${IPV}table_${t}" >+ action "Unloading module $m:" modprobe -r "$m" >+ done >+ return 0 >+} >+ > fwstatus() > { > local i >@@ -233,7 +241,8 @@ stop() > { > if read_tables; then > set_policy ACCEPT && >- flush_delete >+ flush_delete && >+ unload_modules > RETVAL=$? > else > printf %s $"$IPTABLES firewall is not started"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12869
:
2205
| 2206