mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
18 lines
277 B
Perl
Executable File
18 lines
277 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# start.pl
|
|
# Apply the current firewall configuration
|
|
|
|
$no_acl_check++;
|
|
require './ipfw-lib.pl';
|
|
&ReadParse();
|
|
$err = &apply_rules();
|
|
if ($err) {
|
|
$err =~ s/<[^>]*>//g;
|
|
print STDERR "Failed to enable firewall : $err\n";
|
|
exit(1);
|
|
}
|
|
else {
|
|
exit(0);
|
|
}
|
|
|