forked from extern/shorewall_code
Fix spacing problems
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5553 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
9795430f8d
commit
d7af562c03
@ -304,7 +304,7 @@ stop_firewall() {
|
|||||||
|
|
||||||
my $criticalhosts = process_criticalhosts;
|
my $criticalhosts = process_criticalhosts;
|
||||||
|
|
||||||
if ( $criticalhosts ) {
|
if ( @$criticalhosts ) {
|
||||||
if ( $config{ADMINISABSENTMINDED} ) {
|
if ( $config{ADMINISABSENTMINDED} ) {
|
||||||
emit 'for chain in INPUT OUTPUT; do';
|
emit 'for chain in INPUT OUTPUT; do';
|
||||||
emit ' setpolicy \$chain ACCEPT';
|
emit ' setpolicy \$chain ACCEPT';
|
||||||
@ -312,7 +312,8 @@ stop_firewall() {
|
|||||||
|
|
||||||
emit "setpolicy FORWARD DROP\n";
|
emit "setpolicy FORWARD DROP\n";
|
||||||
|
|
||||||
emit "deleteallchains\n";
|
emit 'deleteallchains';
|
||||||
|
emit '';
|
||||||
|
|
||||||
for my $hosts ( @$criticalhosts ) {
|
for my $hosts ( @$criticalhosts ) {
|
||||||
my ( $interface, $host ) = ( split /,/, $hosts );
|
my ( $interface, $host ) = ( split /,/, $hosts );
|
||||||
@ -327,9 +328,8 @@ stop_firewall() {
|
|||||||
emit "
|
emit "
|
||||||
for chain in INPUT OUTPUT; do
|
for chain in INPUT OUTPUT; do
|
||||||
setpolicy \$chain DROP
|
setpolicy \$chain DROP
|
||||||
done
|
done";
|
||||||
|
emit '';
|
||||||
";
|
|
||||||
} else {
|
} else {
|
||||||
pop_indent;
|
pop_indent;
|
||||||
emit "
|
emit "
|
||||||
@ -339,9 +339,9 @@ stop_firewall() {
|
|||||||
|
|
||||||
setpolicy FORWARD DROP
|
setpolicy FORWARD DROP
|
||||||
|
|
||||||
deleteallchains
|
deleteallchains";
|
||||||
|
|
||||||
";
|
emit '';
|
||||||
|
|
||||||
for my $hosts ( @$criticalhosts ) {
|
for my $hosts ( @$criticalhosts ) {
|
||||||
my ( $interface, $host ) = ( split /,/, $hosts );
|
my ( $interface, $host ) = ( split /,/, $hosts );
|
||||||
@ -357,9 +357,9 @@ stop_firewall() {
|
|||||||
|
|
||||||
for chain in INPUT FORWARD; do
|
for chain in INPUT FORWARD; do
|
||||||
setcontinue \$chain
|
setcontinue \$chain
|
||||||
done
|
done";
|
||||||
|
|
||||||
";
|
emit '';
|
||||||
}
|
}
|
||||||
} elsif ( ! $config{ADMINISABSENTMINDED} ) {
|
} elsif ( ! $config{ADMINISABSENTMINDED} ) {
|
||||||
pop_indent;
|
pop_indent;
|
||||||
@ -368,8 +368,7 @@ stop_firewall() {
|
|||||||
setpolicy \$chain DROP
|
setpolicy \$chain DROP
|
||||||
done
|
done
|
||||||
|
|
||||||
deleteallchains
|
deleteallchains";
|
||||||
";
|
|
||||||
} else {
|
} else {
|
||||||
pop_indent;
|
pop_indent;
|
||||||
emit "
|
emit "
|
||||||
@ -383,9 +382,9 @@ stop_firewall() {
|
|||||||
|
|
||||||
for chain in INPUT FORWARD; do
|
for chain in INPUT FORWARD; do
|
||||||
setcontinue \$chain
|
setcontinue \$chain
|
||||||
done
|
done";
|
||||||
|
|
||||||
";
|
emit '';
|
||||||
}
|
}
|
||||||
|
|
||||||
push_indent;
|
push_indent;
|
||||||
@ -438,7 +437,7 @@ stop_firewall() {
|
|||||||
kill \$\$
|
kill \$\$
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}";
|
}\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
sub generate_script_2 () {
|
sub generate_script_2 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user