diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-11-29 14:59:23 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-11-29 14:59:23 -0800 |
commit | adc2eab545a33da7414b9a733525be8f88207385 (patch) | |
tree | d4ec56eb3ba70888554435bdbe7a7b63cf6463dc /lib/Vyatta/IpTables/Rule.pm | |
parent | 3d6d650b1d185a20be83dce660409b25cb244140 (diff) | |
download | vyatta-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-x | lib/Vyatta/IpTables/Rule.pm | 3 |
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 { |