Skip to content

Commit

Permalink
Merge 14a130a into ae7d17f
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Feb 14, 2018
2 parents ae7d17f + 14a130a commit f33b574
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib/y2firewall/importer_strategies/suse_firewall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class SuseFirewall
}.freeze

SUPPORTED_PROPERTIES = [
"enable_firewall",
"start_firewall",
"FW_CONFIGURATIONS_DMZ",
"FW_CONFIGURATIONS_EXT",
"FW_CONFIGURATIONS_INT",
Expand All @@ -73,7 +75,8 @@ class SuseFirewall
"FW_SERVICES_EXT_IP",
"FW_SERVICES_INT_IP",
"FW_LOG_ACCEPT_CRIT",
"FW_LOG_DROPT_ALL",
"FW_LOG_DROP_CRIT",
"FW_LOG_DROP_ALL",
"FW_MASQUERADE"
].freeze

Expand Down Expand Up @@ -309,8 +312,8 @@ def ipsec_trust_zone
# @return [String] all, unicast or off depending on the log config
def log_denied_packets
accept_crit = profile.fetch("FW_LOG_ACCEPT_CRIT", "no") == "yes"
drop_all = profile.fetch("FW_LOG_DROPT_ALL", "no") == "yes"
drop_crit = profile.fetch("FW_LOG_ACCEPT_CRIT", "no") == "yes"
drop_all = profile.fetch("FW_LOG_DROP_ALL", "no") == "yes"
drop_crit = profile.fetch("FW_LOG_DROP_CRIT", "no") == "yes"

if drop_all
"all"
Expand Down

0 comments on commit f33b574

Please sign in to comment.