mirror of
https://github.com/webmin/webmin.git
synced 2026-01-14 03:11:35 +00:00
13 lines
280 B
Perl
Executable File
13 lines
280 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Save active firewall rules to a file
|
|
|
|
require './ipfw-lib.pl';
|
|
&ReadParse();
|
|
&error_setup($text{'convert_err'});
|
|
&lock_file($ipfw_file);
|
|
&system_logged("$config{'ipfw'} list > $ipfw_file");
|
|
&unlock_file($ipfw_file);
|
|
&webmin_log("convert");
|
|
&redirect("");
|
|
|