| line |
true |
false |
branch |
|
82
|
0 |
0 |
if ($param eq 'proto') { } |
|
|
0 |
0 |
elsif ($param eq 'from' or $param eq 'to') { } |
|
|
0 |
0 |
elsif ($param eq 'app') { } |
|
|
0 |
0 |
elsif ($param eq 'direction') { } |
|
|
0 |
0 |
elsif ($param eq 'log') { } |
|
|
0 |
0 |
elsif ($param eq 'delete') { } |
|
|
0 |
0 |
elsif ($param =~ m[^\d+(/(tcp|udp))?$]u) { } |
|
84
|
0 |
0 |
unless $proto eq "tcp" or $proto eq "udp" |
|
93
|
0 |
0 |
if ($params[0] and $params[0] eq 'port') { } |
|
|
0 |
0 |
elsif ($params[0] and $params[0] eq 'app') { } |
|
115
|
0 |
0 |
unless $direction eq "in" or $direction eq "out" |
|
120
|
0 |
0 |
if ($params[0] and $params[0] eq "on") |
|
128
|
0 |
0 |
if ($log eq 'new') { } |
|
|
0 |
0 |
elsif ($log eq 'all') { } |
|
139
|
0 |
0 |
if shift @params |
|
142
|
0 |
0 |
if (scalar @{$torun{'commands'};} == 0) |
|
151
|
0 |
0 |
if $has_app and $has_port |
|
155
|
0 |
0 |
if $has_app and $torun{'proto'} |
|
159
|
0 |
0 |
if $torun{$param} |
|
165
|
0 |
0 |
if ($return =~ /(inserted|updated|deleted|added)/u) |
|
177
|
0 |
0 |
$action eq 'enable' ? : |
|
178
|
0 |
0 |
if ($return =~ /Status: $needed/u) |
|
180
|
0 |
0 |
$action eq 'enable' ? : |
|
184
|
0 |
0 |
if ($ret =~ /$success/u) { } |
|
199
|
0 |
0 |
unless $param =~ /(on|off|low|medium|high|full)/u |
|
205
|
0 |
0 |
if ($param eq 'on') { } |
|
|
0 |
0 |
elsif ($param eq 'off') { } |
|
206
|
0 |
0 |
unless $current =~ /^Logging: on/mu |
|
209
|
0 |
0 |
unless $current =~ /^Logging: off$/mu |
|
212
|
0 |
0 |
unless $current =~ /^Logging: on \($param\)$/mu |
|
215
|
0 |
0 |
if ($need_update) |
|
217
|
0 |
0 |
$param eq 'off' ? : |
|
221
|
0 |
0 |
if ($ret eq $success) { } |
|
236
|
0 |
0 |
if (can_run('ufw')) { } |
|
239
|
0 |
0 |
if ($? != 0) |
|
257
|
0 |
0 |
unless my $action = $__action_map{$rule_config->{'action'}} |
|
267
|
0 |
0 |
if defined $rule_config->{'proto'} |
|
270
|
0 |
0 |
if defined $rule_config->{'source'} |
|
273
|
0 |
0 |
if defined $rule_config->{'sport'} |
|
276
|
0 |
0 |
if defined $rule_config->{'sapp'} |
|
279
|
0 |
0 |
if defined $rule_config->{'destination'} |
|
282
|
0 |
0 |
if defined $rule_config->{'dport'} |
|
285
|
0 |
0 |
if defined $rule_config->{'dapp'} |
|
288
|
0 |
0 |
if defined $rule_config->{'iniface'} |
|
291
|
0 |
0 |
if defined $rule_config->{'iniface'} |
|
294
|
0 |
0 |
if defined $rule_config->{'log'} |
|
297
|
0 |
0 |
if defined $rule_config->{'delete'} |