mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 01:53:27 +01:00
Avoid 'delete_nat doesn't exist' Errors
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3612 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
9e3b8d446a
commit
17f21b2f05
@ -101,3 +101,5 @@ Changes in 3.1.x.
|
||||
define_firewall().)
|
||||
|
||||
43) Add Simon's redhat prog files.
|
||||
|
||||
44) Add 'delete_nat' to compiled program.
|
||||
|
@ -8128,6 +8128,19 @@ stop_firewall() {
|
||||
\$IPTABLES -A \$1 -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
}
|
||||
|
||||
delete_nat() {
|
||||
\$IPTABLES -t nat -F
|
||||
\$IPTABLES -t nat -X
|
||||
|
||||
if [ -f /var/lib/shorewall/nat ]; then
|
||||
while read external interface; do
|
||||
qt ip addr del $external dev $interface
|
||||
done < /var/lib/shorewall/nat
|
||||
|
||||
rm -f {/var/lib/shorewall}/nat
|
||||
fi
|
||||
}
|
||||
|
||||
case \$COMMAND in
|
||||
stop|clear)
|
||||
;;
|
||||
|
@ -35,6 +35,9 @@ Problems Corrected in 3.1.9
|
||||
2) If any extension script used 'set --' (like the 'Limit' standard action
|
||||
extension script) then 'shorewall restore' would fail.
|
||||
|
||||
3) An undefined function 'delete_nat' was previously called when a compiled
|
||||
program was issued the 'stop' or 'clear' command.
|
||||
|
||||
Other changes in 3.1.9
|
||||
|
||||
1) The 'redhat' distribution is now supported in the compile command's -d
|
||||
|
Loading…
Reference in New Issue
Block a user