Files
webmin/nftables/apply.cgi
Ilia Ross 4f3e993ae6 Merge swelljoe/nftables as new nftables module
Import https://github.com/swelljoe/nftables into the Webmin tree under nftables/ while preserving upstream history.
2026-04-17 15:19:20 +02:00

17 lines
304 B
Perl
Executable File

#!/usr/bin/perl
# apply.cgi
# Apply the current configuration
require './nftables-lib.pl'; ## no critic
use strict;
use warnings;
our (%in, %text);
ReadParse();
error_setup($text{'apply_err'});
my @tables = get_nftables_save();
my $err = apply_restore();
error($err) if ($err);
redirect("index.cgi");