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:
teastep 2007-06-08 00:27:43 +00:00
parent 409ef2ece4
commit f5799cf6d4

View File

@ -1850,7 +1850,14 @@ sub create_netfilter_load() {
# #
emit 'exec 3>${VARDIR}/.iptables-restore-input'; 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"; emitr "*$table";
my @chains; my @chains;