mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
18 lines
260 B
Perl
Executable File
18 lines
260 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# stop.pl
|
|
# Turn off the firewall
|
|
|
|
$no_acl_check++;
|
|
require './ipfw-lib.pl';
|
|
&ReadParse();
|
|
$err = &disable_rules();
|
|
if ($err) {
|
|
$err =~ s/<[^>]*>//g;
|
|
print STDERR "Failed to disable firewall : $err\n";
|
|
exit(1);
|
|
}
|
|
else {
|
|
exit(0);
|
|
}
|
|
|