summaryrefslogtreecommitdiff
path: root/lib/Vyatta/IpTables/Rule.pm
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-11-29 14:59:23 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-11-29 14:59:23 -0800
commitadc2eab545a33da7414b9a733525be8f88207385 (patch)
treed4ec56eb3ba70888554435bdbe7a7b63cf6463dc /lib/Vyatta/IpTables/Rule.pm
parent3d6d650b1d185a20be83dce660409b25cb244140 (diff)
downloadvyatta-cfg-firewall-adc2eab545a33da7414b9a733525be8f88207385.tar.gz
vyatta-cfg-firewall-adc2eab545a33da7414b9a733525be8f88207385.zip
Show if logging is enabled on the default action.
Diffstat (limited to 'lib/Vyatta/IpTables/Rule.pm')
-rwxr-xr-xlib/Vyatta/IpTables/Rule.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Vyatta/IpTables/Rule.pm b/lib/Vyatta/IpTables/Rule.pm
index e190a46..d3c11e0 100755
--- a/lib/Vyatta/IpTables/Rule.pm
+++ b/lib/Vyatta/IpTables/Rule.pm
@@ -139,6 +139,9 @@ sub setupDummy {
my $policy = $config->returnOrigValue('default-action');
$policy = 'drop' if ! defined $policy;
$self->{_action} = $policy;
+ my $log = $config->existsOrig('enable-default-log');
+ $log = 'enable' if defined $log;
+ $self->{_log} = $log;
}
sub setup_base {