diff --git a/src/firewall/core/fw_zone.py b/src/firewall/core/fw_zone.py index b9fe1f6..9d8bcf6 100644 --- a/src/firewall/core/fw_zone.py +++ b/src/firewall/core/fw_zone.py @@ -1526,7 +1526,7 @@ class FirewallZone(object): if rule.family: ipvs = [ rule.family ] elif rule.element and (isinstance(rule.element, Rich_IcmpBlock) or isinstance(rule.element, Rich_IcmpType)): - ict = self._fw.icmptype.get_icmptype(rule.element.name) + ict = self._fw.config.get_icmptype(rule.element.name) if ict.destination: ipvs = [ipv for ipv in ["ipv4", "ipv6"] if ipv in ict.destination] @@ -1698,7 +1698,7 @@ class FirewallZone(object): # ICMP BLOCK and ICMP TYPE elif type(rule.element) == Rich_IcmpBlock or \ type(rule.element) == Rich_IcmpType: - ict = self._fw.icmptype.get_icmptype(rule.element.name) + ict = self._fw.config.get_icmptype(rule.element.name) if type(rule.element) == Rich_IcmpBlock and \ rule.action and type(rule.action) == Rich_Accept: @@ -1862,7 +1862,7 @@ class FirewallZone(object): transaction.add_rules(backend, rules) def _icmp_block(self, enable, zone, icmp, transaction): - ict = self._fw.icmptype.get_icmptype(icmp) + ict = self._fw.config.get_icmptype(icmp) if enable: transaction.add_chain(zone, "filter", "INPUT")