mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
Make iptables_restore input dependent on available tables
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6485 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
409ef2ece4
commit
f5799cf6d4
@ -1850,7 +1850,14 @@ sub create_netfilter_load() {
|
||||
#
|
||||
emit 'exec 3>${VARDIR}/.iptables-restore-input';
|
||||
|
||||
for my $table ( qw/raw nat mangle filter/ ) {
|
||||
my @table_list;
|
||||
|
||||
push @table_list, 'raw' if $capabilities{RAW_TABLE};
|
||||
push @table_list, 'nat' if $capabilities{NAT_ENABLED};
|
||||
push @table_list, 'mangle' if $capabilities{MANGLE_ENABLED};
|
||||
push @table_list, 'filter';
|
||||
|
||||
for my $table ( @table_list ) {
|
||||
emitr "*$table";
|
||||
|
||||
my @chains;
|
||||
|
Loading…
x
Reference in New Issue
Block a user