forked from extern/shorewall_code
Cosmetic improvements to the generated code
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5711 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0c8ffffb10
commit
824180e6f8
@ -340,7 +340,8 @@ stop_firewall() {
|
||||
|
||||
setpolicy FORWARD DROP
|
||||
|
||||
deleteallchains";
|
||||
deleteallchains
|
||||
";
|
||||
|
||||
for my $hosts ( @$criticalhosts ) {
|
||||
my ( $interface, $host ) = ( split /:/, $hosts );
|
||||
@ -357,14 +358,16 @@ stop_firewall() {
|
||||
|
||||
for chain in INPUT FORWARD; do
|
||||
setcontinue \$chain
|
||||
done";
|
||||
done
|
||||
";
|
||||
}
|
||||
} elsif ( ! $config{ADMINISABSENTMINDED} ) {
|
||||
emit "for chain in INPUT OUTPUT FORWARD; do
|
||||
setpolicy \$chain DROP
|
||||
done
|
||||
|
||||
deleteallchains"
|
||||
deleteallchains
|
||||
"
|
||||
} else {
|
||||
emit "for chain in INPUT FORWARD; do
|
||||
setpolicy \$chain DROP
|
||||
@ -376,7 +379,8 @@ stop_firewall() {
|
||||
|
||||
for chain in INPUT FORWARD; do
|
||||
setcontinue \$chain
|
||||
done";
|
||||
done
|
||||
";
|
||||
}
|
||||
|
||||
push_indent;
|
||||
|
Loading…
Reference in New Issue
Block a user