/usr/lib/python3.9/site-packages/firewall/core
NameSizeModeActions
io/-0755rm
__pycache__/-0755rm
base.py20710644editdlrm
ebtables.py94140644editdlrm
fw.py573480644editdlrm
fw_config.py493360644editdlrm
fw_direct.py230040644editdlrm
fw_helper.py18330644editdlrm
fw_icmptype.py24850644editdlrm
fw_ifcfg.py25620644editdlrm
fw_ipset.py100820644editdlrm
fw_nm.py71860644editdlrm
fw_policies.py28020644editdlrm
fw_policy.py781060644editdlrm
fw_service.py16390644editdlrm
fw_transaction.py58670644editdlrm
fw_zone.py443560644editdlrm
helper.py8040644editdlrm
icmp.py45460644editdlrm
ipset.py122130644editdlrm
ipXtables.py629350644editdlrm
logger.py310390644editdlrm
modules.py38220644editdlrm
nftables.py949800644editdlrm
prog.py15100644editdlrm
rich.py351470644editdlrm
watcher.py32200644editdlrm
__init__.py00644editdlrm
Edit: /usr/lib/python3.9/site-packages/firewall/core/base.py (2071B)
# -*- coding: utf-8 -*- # # Copyright (C) 2011-2016 Red Hat, Inc. # # Authors: # Thomas Woerner # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # """Base firewall settings""" DEFAULT_ZONE_TARGET = "{chain}_{zone}" DEFAULT_POLICY_TARGET = "CONTINUE" DEFAULT_POLICY_PRIORITY = -1 ZONE_TARGETS = [ "ACCEPT", "%%REJECT%%", "DROP", DEFAULT_ZONE_TARGET, "default" ] POLICY_TARGETS = [ "ACCEPT", "REJECT", "DROP", "CONTINUE" ] SHORTCUTS = { "PREROUTING": "PRE", "POSTROUTING": "POST", "INPUT": "IN", "FORWARD": "FWD", "OUTPUT": "OUT", } REJECT_TYPES = { "ipv4": [ "icmp-host-prohibited", "host-prohib", "icmp-net-unreachable", "net-unreach", "icmp-host-unreachable", "host-unreach", "icmp-port-unreachable", "port-unreach", "icmp-proto-unreachable", "proto-unreach", "icmp-net-prohibited", "net-prohib", "tcp-reset", "tcp-rst", "icmp-admin-prohibited", "admin-prohib" ], "ipv6": [ "icmp6-adm-prohibited", "adm-prohibited", "icmp6-no-route", "no-route", "icmp6-addr-unreachable", "addr-unreach", "icmp6-port-unreachable", "port-unreach", "tcp-reset" ] } # ipset types that can be used as a source in zones # The match-set option will be src or src,src according to the # dimension of the ipset. SOURCE_IPSET_TYPES = [ "hash:ip", "hash:ip,port", "hash:ip,mark", "hash:net", "hash:net,port", "hash:net,iface", "hash:mac" ]