mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 23:30:29 +01:00
Rework the nftables module so Webmin manages its saved nftables configuration as the source of truth instead of directly editing the live ruleset. Add an active ruleset view for inspecting live tables and importing copies into Webmin-managed config if needed, track managed and imported tables with metadata, and prevent externally managed tables from being overwritten during apply. Co-authored-by: Copilot <copilot@github.com>
16 lines
270 B
Perl
Executable File
16 lines
270 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 $err = apply_restore();
|
|
error($err) if ($err);
|
|
|
|
redirect("index.cgi");
|