firewallctl — firewalld command line client
firewallctl[OPTIONS...]
firewallctl is an alternate command line client of the firewalld daemon. It provides interface to manage runtime and permanent configuration.
The runtime configuration in firewalld is separated from the permanent configuration. This means that things can get changed in the runtime or permanent configuration.
For sequence options, this are the options that can be specified multiple times, the exit code is 0 if there is at least one item that succeded. TheALREADY_ENABLED(11),NOT_ENABLED(12) and alsoZONE_ALREADY_SET(16) errors are treated as succeeded. If there are issues while parsing the items, then these are treated as warnings and will not change the result as long as there is a succeeded one. Without any succeeded item, the exit code will depend on the error codes. If there is exactly one error code, then this is used. If there are more than one thenUNKNOWN_ERROR(254) will be used.
The following options are supported:
State Option
stateCheck whether the firewalld daemon is active (i.e. running). Returns an exit code 0 if it is active,
NOT_RUNNINGotherwise (see the section called “Exit Codes”). This will also print the state toSTDOUT.
Reload Options
reload[-c|--complete]Reload firewall rules and keep state information. Current permanent configuration will become new runtime configuration, i.e. all runtime only changes done until reload are lost with reload if they have not been also in permanent configuration.
With the
-c|--completeoption, reload firewall completely, even netfilter kernel modules. This will most likely terminate active connections, because state information is lost. This option should only be used in case of severe firewall problems. For example if there are state information problems that no connection can be established with correct firewall rules.
Runtime To Permanent Option
runtime-to-permanentSave active runtime configuration and overwrite permanent configuration with it.
The way this is supposed to work is that when configuring firewalld you do runtime changes only and once you're happy with the configuration and you tested that it works the way you want, you save the configuration to disk.
List Options
listzones[-a|--active|-p|--permanent]Print predefined zones as a space separated list.
With the
-a|--activeoption, only zones are listed, that are active. That means that the zones have interface or source bindings.With the
-p|--permanentoption, zones in the permanent environment are listed.listservices[-p|--permanent]Print predefined services as a space separated list.
With the
-p|--permanentoption, services in the permanent environment are listed.listipsets[-p|--permanent]Print predefined ipsets as a space separated list.
With the
-p|--permanentoption, ipsets in the permanent environment are listed.listhelpers[-p|--permanent]Print predefined helpers as a space separated list.
With the
-p|--permanentoption, helpers in the permanent environment are listed.listicmptypes[-p|--permanent]Print predefined icmptypes as a space separated list.
With the
-p|--permanentoption, icmptypes in the permanent environment are listed.
Info Options
infozonezone[-p|--permanent]Print information about the zone
zone. The output format is:zoneinterfaces:interface1.. sources:source1.. services:service1.. ports:port1.. protocols:protocol1.. forward-ports:forward-port1.. source-ports:source-port1.. icmp-blocks:icmp-type1.. rich rules:rich-rule1..
With the
-p|--permanentoption, zones in the permanent environment are listed.infozones[-a|--active|-p|--permanent]Print information about the zones. The output format is:
zoneinterfaces:interface1.. sources:source1.. services:service1.. ports:port1.. protocols:protocol1.. forward-ports:forward-port1.. source-ports:source-port1.. icmp-blocks:icmp-type1.. rich rules:rich-rule1..
With the
-a|--activeoption, only zones are listed, that are active. That means that the zones have interface or source bindings.With the
-p|--permanentoption, zones in the permanent environment are listed.infoserviceservice[-p|--permanent]Print information about the service
service. The output format is:serviceports:port1.. protocols:protocol1.. source-ports:source-port1.. modules:module1.. destination:ipv1:address1..
With the
-p|--permanentoption, services in the permanent environment are listed.infoservices[-p|--permanent]Print information about the services. The output format is:
serviceports:port1.. protocols:protocol1.. source-ports:source-port1.. modules:module1.. destination:ipv1:address1..
With the
-p|--permanentoption, services in the permanent environment are listed.infoipsetipset[-p|--permanent]Print information about the ipset
ipset. The output format is:ipsettype:typeoptions:option1[=value1].. entries:entry1..
With the
-p|--permanentoption, ipsets in the permanent environment are listed.infoipsets[-p|--permanent]Print information about the ipsets. The output format is:
ipsettype:typeoptions:option1[=value1].. entries:entry1..
With the
-p|--permanentoption, ipsets in the permanent environment are listed.infohelperhelper[-p|--permanent]Print information about the helper
helper. The output format is:helperfamily:familymodule:moduleports:port1..
With the
-p|--permanentoption, helpers in the permanent environment are listed.infohelpers[-p|--permanent]Print information about the helpers. The output format is:
helperfamily:familymodule:moduleports:port1..
With the
-p|--permanentoption, helpers in the permanent environment are listed.infoicmptypeicmptype[-p|--permanent]Print information about the icmptype
icmptype. The output format is:icmptypedestination:ipv1..
With the
-p|--permanentoption, icmptypes in the permanent environment are listed.infoicmptypes[-p|--permanent]Print information about the icmptypes. The output format is:
icmptypedestination:ipv1..
With the
-p|--permanentoption, icmptypes in the permanent environment are listed.
Zone Options
zonezone[-p|--permanent]addelement.. [--timeout=timeval]Add an element or several elements of the same type to a zone with an optional timeout. If a timeout is supplied, the element will be active for the specified amount of time and will be removed automatically afterwards.
If zone is the empty string
"", the default zone will be used.For possible zone elements see further down.
With the
-por--permanentoption, elements are added in the permanent environment.The
--timeoutoption is not combinable with the--permanentoption.zonezone[-p|--permanent]removeelement..Remove an element or several elements of the same type from the zone.
If zone is the empty string
"", the default zone will be used.For possible zone elements see further down.
With the
-por--permanentoption, elements are added in the permanent environment.zonezone[-p|--permanent]queryelement..Return whether the element or several elements of the same type are enabled in the zone.
If zone is the empty string
"", the default zone will be used.For possible zone elements see further down.
With the
-por--permanentoption, elements are added in the permanent environment.zonezone[-p|--permanent]get{short|description}Return short or long description from zone.
If zone is the empty string
"", the default zone will be used.With the
-por--permanentoption, elements are added in the permanent environment.zonezone[-p|--permanent]set{short|description}textSet short or long description for a zone to
text.If zone is the empty string
"", the default zone will be used.With the
-por--permanentoption, elements are added in the permanent environment.zonezone[-p|--permanent]list{interfaces|sources|services|ports|protocols|source-ports|rich-rules|forward-ports|icmp-blocks}Return list of elements added for
zone.If zone is the empty string
"", the default zone will be used.With the
-por--permanentoption, elements are added in the permanent environment.zonezone{-p|--permanent}load-defaultsLoad zone default settings or report NO_DEFAULTS error.
Zone Elements
A zone element can be one of:interfaceinterfaceAn interface name is a string up to 16 characters long, that may not contain
' ','/','!'and'*'.If the interface is under control of NetworkManager, it is at first connected to change the zone for the connection that is using the interface for new or changed interface bindings. If the setting in NetworkManager fails, the zone binding is created or changed in firewalld and the limitations below apply.
As a end user you don't need to create or change zone bindings of interfaces in most cases, because NetworkManager (or legacy network service) adds interfaces into zones automatically (according to
ZONE=option from ifcfg-interfacefile) ifNM_CONTROLLED=nois not set. You should do it only if there's no /etc/sysconfig/network-scripts/ifcfg-interfacefile. If there is such file and you add interface to zone with this--add-interfaceoption, make sure the zone is the same in both cases, otherwise the behaviour would be undefined. Please also have a look at the firewalld(1) man page in theConceptssection. For permanent association of interface with a zone, see also 'How to set or change a zone for a connection?' in firewalld.zones(5).For the addion or change of interfaces that are not under control of NetworkManager: firewalld tries to change the ZONE setting in the ifcfg file, if an ifcfg file exists that is using the interface.
Only for the removal of interfaces that are not under control of NetworkManager: firewalld is not trying to change the ZONE setting in the ifcfg file. This is needed to make sure that an ifdown of the interface will not result in a reset of the zone setting to the default zone. Only the zone binding is then removed in firewalld then.
source{address[/mask] | MAC | ipset:ipset}A source address or address range is either an IP address or a network IP address with a mask for IPv4 or IPv6 or a MAC address or also an ipset. For IPv4, the mask can be a network mask or a plain number. For IPv6 the mask is a plain number. The use of host names is not supported.
serviceserviceA service is a firewalld provided or user created service. To get a list of the supported services, use firewallctl list services [
-p|--permanent].portportid[-portid]/protocolA port can either be a single port number or a port range
portid-portid. The protocol can either betcporudp.protocolprotocolA protocol can be any protocol supported by the system. Please have a look at
/etc/protocolsfor supported protocols.source-portportid[-portid]/protocolA source port can either be a single port number or a port range
portid-portid. The protocol can either betcporudp.rich-rule'rule'A rich language rule. For the rich language rule syntax, please have a look at firewalld.richlanguage(5).
masqueradeIPv4 masquerading.
Masquerading is useful if the machine is a router and machines connected over an interface in another zone should be able to use the first connection.
forward-portport=portid[-portid]:proto=protocol[:toport=portid[-portid]][:toaddr=address[/mask]]An IPv4 forward port.
The port can either be a single port number
portidor a port rangeportid-portid. The protocol can either betcporudp. The destination address is a simple IP address.For IPv6 forward ports, please use the rich language.
icmp-blockicmptypeAn ICMP type block.
The
icmptypeis the one of the ICMP types firewalld supports. To get a listing of supported icmp types: firewallctl list icmptypes [-p|--permanent]icmp-block-inversionInvert ICMP type blocks. The ICMP types marked to be blocked are allowed and all others are blocked.
Service Options
serviceservice[-p|--permanent]addelement..Add an element or several elements of the same type to a service.
For possible service elements see further down.
With the
-por--permanentoption, elements are added in the permanent environment.serviceservice[-p|--permanent]removeelement..Remove an element or several elements of the same type from the service.
For possible service elements see further down.
With the
-por--permanentoption, elements are added in the permanent environment.serviceservice[-p|--permanent]queryelement..Return whether the element or several elements of the same type are enabled in the service.
For possible service elements see further down.
With the
-por--permanentoption, elements are added in the permanent environment.serviceservice[-p|--permanent]get{short|description}Return short or long description from service.
With the
-por--permanentoption, elements are added in the permanent environment.serviceservice[-p|--permanent]set{short|description}textSet short or long description for a service to
text.With the
-por--permanentoption, elements are added in the permanent environment.serviceservice[-p|--permanent]list{ports|protocols|source-ports|modules|destinations}Return list of elements added for
service.With the
-por--permanentoption, elements are added in the permanent environment.serviceservice{-p|--permanent}load-defaultsLoad service default settings or report NO_DEFAULTS error.
Service Elements
A service element can be one of:portportid[-portid]/protocolA port can either be a single port number or a port range
portid-portid. The protocol can either betcporudp.protocolprotocolA protocol can be any protocol supported by the system. Please have a look at
/etc/protocolsfor supported protocols.source-portportid[-portid]/protocolA source port can either be a single port number or a port range
portid-portid. The protocol can either betcporudp.modulemoduleA netfilter helper module.
destinationipv:address[/mask]A destination address with optional mask for ipv. ipv is one of
ipv4oripv6.
Ipset Options
ipsetipset[-p|--permanent]add{entryentry|entries-from-filefilename}..Add an entry or several entries to the ipset. Or add entries from one or more files to the ipset.
For possible ipset entries see further down.
With the
-por--permanentoption, elements are added in the permanent environment.ipsetipset[-p|--permanent]remove{entryentry|entries-from-filefilename|all}..Remove an entry or several entries the ipset. Or remove entries from one or more files from the ipset. Or remove all entries from the ipset.
For possible ipset entries see further down.
With the
-por--permanentoption, elements are added in the permanent environment.ipsetipset[-p|--permanent]query{entryentry|entries-from-filefilename}..Return whether the entry or the several entries are part of the ipset. Or return whether the entries from one or more files are part of the ipset.
For possible ipset entries see further down.
With the
-por--permanentoption, elements are added in the permanent environment.ipsetipset[-p|--permanent]get{short|description}Return short or long description from ipset.
With the
-por--permanentoption, elements are added in the permanent environment.ipsetipset[-p|--permanent]set{short|description}textSet short or long description for a ipset to
text.With the
-por--permanentoption, elements are added in the permanent environment.ipsetipset[-p|--permanent]listentriesReturn list of entries added for
ipset.With the
-por--permanentoption, elements are added in the permanent environment.ipsetipset{-p|--permanent}load-defaultsLoad ipset default settings or report NO_DEFAULTS error.
Ipset Entries
An ipset entry depends on the ipset type and family setting.For ipset typehash:net:ip[/cidr]An entry can be a single ip address with an optional cidr netmask or an ip range. The cidr value must be between 1-32 for IPv4 and between 1-128 for IPv6.
The address can be an IPv4 address if the family is set to
inetor not set or an IPv6 address if the family is set toinet6.For ipset typehash:ip:ip[/cidr] |fromaddr-toaddrAn entry can either be a single ip address with an optional cidr netmask or an ip range. The cidr value must be between 1-32 for IPv4 and between 1-128 for IPv6.
The address can be an IPv4 address if the family is set to
inetor not set or an IPv6 address if the family is set toinet6.For ipset typehash:mac(not supported with older ipset and kernel versions):macAn entry is a mac address.
Helper Options
helperhelper-p|--permanent{add|remove}portportid[-portid]/protocolAdd the port to the helper or remove the port from the helper. A port can either be a single port number or a port range
portid-portid. The protocol can either betcporudp.With the
-por--permanentoption, elements are added in the permanent environment.helperhelper[-p|--permanent]queryportportid[-portid]/protocolReturn whether the port is set in the helper.
With the
-por--permanentoption, elements are added in the permanent environment.helperhelper[-p|--permanent]get{short|description}Return short or long description from helper.
With the
-por--permanentoption, elements are added in the permanent environment.helperhelper[-p|--permanent]getfamilyGet the family from helper where it is usable.
helperhelper[-p|--permanent]getmoduleGet the netfilter helper module from helper.
helperhelper-p|--permanentset{short|description}textSet short or long description for a helper to
text.With the
-por--permanentoption, elements are added in the permanent environment.helperhelper-p|--permanentsetfamilySet the family for the helper where it is usable.
helperhelper-p|--permanentsetmoduleSet the netfilter helper module for the helper.
helperhelper[-p|--permanent]listportsReturn list of ports added for
helper.With the
-por--permanentoption, elements are added in the permanent environment.helperhelper{-p|--permanent}load-defaultsLoad helper default settings or report NO_DEFAULTS error.
Icmptype Options
icmptypeicmptype[-p|--permanent] {add|remove}destination{ipv4|ipv6}Add the destination to the icmptype or remove the destination from the icmptype.
With the
-por--permanentoption, elements are added in the permanent environment.icmptypeicmptype[-p|--permanent]querydestination{ipv4|ipv6}Return whether the destination is set in the icmptype.
With the
-por--permanentoption, elements are added in the permanent environment.icmptypeicmptype[-p|--permanent]get{short|description}Return short or long description from icmptype.
With the
-por--permanentoption, elements are added in the permanent environment.icmptypeicmptype[-p|--permanent]set{short|description}textSet short or long description for a icmptype to
text.With the
-por--permanentoption, elements are added in the permanent environment.icmptypeicmptype[-p|--permanent]listdestinationsReturn list of destinations added for
icmptype.With the
-por--permanentoption, elements are added in the permanent environment.icmptypeicmptype{-p|--permanent}load-defaultsLoad icmptype default settings or report NO_DEFAULTS error.
New Options
new{-p|--permanent}zone{ {-n|--name}name| {-f|--filename}filename[ {-n|--name}name} ] }Add a new permanent zone. Either empty with specified name or from an existing zone file with optional name override.
The zone will only be usable in the runtime environment after a reload.
new{-p|--permanent}service{ {-n|--name}name| {-f|--filename}filename[ {-n|--name}name} ] }Add a new permanent service. Either empty with specified name or from an existing service file with optional name override.
The service will only be usable in the runtime environment after a reload.
new{-p|--permanent}ipset{ {-n|--name}name{-t|--type}ipsettype[ {-o|--option}option[=value] ] | {-f|--filename}filename[ {-n|--name}name} ] }Add a new permanent ipset. Either empty with specified name, type and optional option or from an existing ipset file with optional name override.
For valid ipset options please have a look at firewalld.ipset(5).
The ipset will only be usable in the runtime environment after a reload.
new{-p|--permanent}icmptype{ {-n|--name}name| {-f|--filename}filename[ {-n|--name}name} ] }Add a new permanent icmptype. Either empty with specified name or from an existing icmptype file with optional name override.
The icmptype will only be usable in the runtime environment after a reload.
Delete Options
delete{-p|--permanent}zonezoneDelete a permanent zone.
The zone will be part of the runtime environment until a reload.
delete{-p|--permanent}serviceserviceDelete a permanent service.
The service will be part of the runtime environment until a reload.
delete{-p|--permanent}ipsetipsetDelete a permanent ipset.
The ipset will be part of the runtime environment until a reload.
delete{-p|--permanent}icmptypeicmptypeDelete a permanent icmptype.
The icmptype will be part of the runtime environment until a reload.
Direct Options
direct[-p|--permanent] {add|remove}chain{ipv4|ipv6|eb}tablechainAdd a new chain with name
chainto tabletable. Make sure there's no other chain with this name already.There already exist basic chains to use with direct options, for example
INPUT_directchain (seeiptables-save | grep directoutput for all of them). These chains are jumped into before chains for zones, i.e. every rule put intoINPUT_directwill be checked before rules in zones.direct[-p|--permanent]querychain{ipv4|ipv6|eb}tablechainReturn whether a chain with name
chainexists in tabletable. Returns 0 if true, 1 otherwise. This option concerns only chains previously added withdirect add chain.direct[-p|--permanent]getchains{ipv4|ipv6|eb}tableGet all chains added to table
tableas a space separated list. This option concerns only chains previously added withdirect add chain.direct[-p|--permanent]getall-chainsGet all chains added to all tables. This option concerns only chains previously added with
direct add chain.direct[-p|--permanent] {add|remove}rule{ipv4|ipv6|eb}tablechainpriorityargsAdd or remove a rule with the arguments
argsto chainchainin tabletablewith prioritypriority.The
priorityis used to order rules. Priority 0 means add rule on top of the chain, with a higher priority the rule will be added further down. Rules with the same priority are on the same level and the order of these rules is not fixed and may change. If you want to make sure that a rule will be added after another one, use a low priority for the first and a higher for the following.direct[-p|--permanent]queryrule{ipv4|ipv6|eb}tablechainpriorityargsReturn whether a rule with
priorityand the argumentsargsexists in chainchainin tabletable. Returns 0 if true, 1 otherwise. This option concerns only rules previously added withdirect add rule.direct[-p|--permanent]getall-rulesGet all rules added to all chains in all tables as a newline separated list of the priority and arguments. This option concerns only rules previously added with
direct add rule.direct[-p|--permanent]getrules{ipv4|ipv6|eb}tablechainGet all rules added to chain
chainin tabletableas a newline separated list of the priority and arguments. This option concerns only rules previously added withdirect add rule.direct[-p|--permanent] {add|remove}passthrough{ipv4|ipv6|eb}argsAdd a passthrough rule with the arguments
argsfor the ipv value.direct[-p|--permanent]querypassthrough{ipv4|ipv6|eb}argsReturn whether a passthrough rule with the arguments
argsexists for the ipv value. Returns 0 if true, 1 otherwise.direct[-p|--permanent]getall-passthroughsGet all passthrough rules as a newline separated list of the ipv value and arguments.
direct[-p|--permanent]getpassthroughs{ipv4|ipv6|eb}Get passthrough rules for the ipv value as a newline separated list of the priority and arguments.
directpassthrough{ipv4|ipv6|eb}argsPass a command through to the firewall.
argscan be all iptables, ip6tables and ebtables command line arguments. This command is untracked, which means that firewalld is not able to provide information about this command later on, also not a listing of the untracked passthoughs.
Lockdown Whitelist Options
Local applications or services are able to change the firewall configuration if they are running as root (example: libvirt) or are authenticated using PolicyKit. With this feature administrators can lock the firewall configuration so that only applications on lockdown whitelist are able to request firewall changes.The lockdown access check limits D-Bus methods that are changing firewall rules. Query, list and get methods are not limited.The lockdown feature is a very light version of user and application policies for firewalld and is turned off by default.lockdown-whitelist[-p|--permanent] {add|remove}element..Add an element or several elements of the same type to the lockdown whitelist.
For possible lockdown whitelist elements see further down.
With the
-por--permanentoption, elements are added in the permanent environment.lockdown-whitelist[-p|--permanent]queryelement..Return whether the element or several elements of the same type are enabled in the lockdown whitelist.
For possible lockdown whitelist elements see further down.
With the
-por--permanentoption, elements are added in the permanent environment.lockdown-whitelist[-p|--permanent]list{commands|contexts|uids|users}Return list of elements added for the lockdown whitelist.
With the
-por--permanentoption, elements are added in the permanent environment.
Lockdown Whitelist Elements
The lockdown whitelist can containcommands,contexts,usersanduser ids.If a command entry on the whitelist ends with an asterisk '*', then all command lines starting with the command will match. If the '*' is not there the absolute command inclusive arguments must match.Commands for user root and others is not always the same. Example: As root /bin/firewall-cmd is used, as a normal user /usr/bin/firewall-cmd is be used on Fedora.The context is the security (SELinux) context of a running application or service. To get the context of a running application use ps -e --context.Warning: If the context is unconfined, then this will open access for more than the desired application.The lockdown whitelist entries are checked in the following order:
1. context2. uid3. user4. commandA lockdown whitelist element can be one of:command'string'The command
stringis a complete command line including path and also attributes.If a command entry ends with an asterisk '*', then all command lines starting with the command will match. If the '*' is not there the absolute command inclusive arguments must match.
Commands for user root and others is not always the same, the used path depends on the use of the
PATHenvironment variable.contextstringThe context is the security (SELinux) context of a running application or service.
To get the context of a running application use ps -e --context and search for the application that should be white-listed.
Warning: If the context of an application is unconfined, then this will open access for more than the desired application.
userstringThe user with the name
stringwill be white-listed.uidintegerThe user with the id
useridwill be white-listed.
Config Options
configset{default-zonezone|lockdown{on|off} |log-deniedvalue|panic{on|off} }Set a firewalld config option.
The possible config options are:
default-zonezoneSet the default zone for connections and interfaces where no zone has been selected. Setting the default zone changes the zone for the connections or interfaces, that are using the default zone.
lockdownEnable or disable lockdown. Be careful - if firewall-cmd is not on lockdown whitelist when you enable lockdown you won't be able to disable it again with firewall-cmd, you would need to edit firewalld.conf.
log-deniedIf enabled, logging rules are added right before reject and drop rules in the INPUT, FORWARD and OUTPUT chains for the default rules and also final reject and drop rules in zones for the configured link-layer packet type. The possible values are:
all,unicast,broadcast,multicastandoff. The default setting isoff, which disables the logging.panicEnable or disable the panic mode. If enabled, all incoming and outgoing packets are dropped, active connections will expire. Enable this only if there are serious problems with your network environment. For example if the machine is getting hacked in.
After disabling panic mode established connections might work again, if panic mode was enabled for a short period of time.
configlistList firewalld config options like default-zone, lockdown, log-denied and panic flag.
configget{default-zone|lockdown|log-denied|panic}Get a firewalld config option.
The possible config options are:
default-zoneReturns the default zone for connections and interfaces.
lockdownReturns whether lockdown is enabled.
log-deniedReturns the log denied configuration.
panicReturns 0 if panic mode is enabled, 1 otherwise.
Settings Options
settingslistList firewalld settings like BRIDGE, CleanupOnExit, IPSet, IPSetTypes, IPv4, IPv6, IPv6_rpfilter, IndividualCalls and MinimalMark.
settingsget{BRIDGE|CleanupOnExit|IPSet|IPSetTypes|IPv4|IPv6|IPv6_rpfilter|IndividualCalls|MinimalMark}Get a firewalld setting.
The supported settings are:
BRIDGEReturns whether bridge support is available.
CleanupOnExitReturns whether CleanupOnExit is enabled.
IPSetReturns whether ipset support is available.
IPSetTypesReturns the currently supported ipset types. This setting lists all ipset types that are supported to be used within firewalld. This means the ipset types need to be supported by kernel and the ipset command and firewalld at the same time.
IPv4Returns whether ipv4 support is available.
IPv6Returns whether IPv6 support is available.
IPv6_rpfilterReturns whether IPv6 rpfilter is enabled.
The IPv6 rpfiler performs a reverse path filter test on a packet for IPv6. If a reply to the packet would be sent via the same interface that the packet arrived on, the packet will match and be accepted, otherwise dropped. The rp_filter for IPv4 is controlled using sysctl.
IndividualCallsReturns the individual calls setting.
If disabled, combined -restore calls are not used, but individual calls. This increases the time that is needed to apply changes and to start the daemon, but is good for debugging.
MinimalMarkReturns the minimal mark setting.
Marks up to this minimum are free for use for example in the direct interface. If more free marks are needed, increase the minimum in the firewalld.conf file.
On success 0 is returned. On failure the output is red colored and exit code is either 2 in case of wrong command-line option usage or one of the following error codes in other cases:
String Code ALREADY_ENABLED 11 NOT_ENABLED 12 COMMAND_FAILED 13 NO_IPV6_NAT 14 PANIC_MODE 15 ZONE_ALREADY_SET 16 UNKNOWN_INTERFACE 17 ZONE_CONFLICT 18 BUILTIN_CHAIN 19 EBTABLES_NO_REJECT 20 NOT_OVERLOADABLE 21 NO_DEFAULTS 22 BUILTIN_ZONE 23 BUILTIN_SERVICE 24 BUILTIN_ICMPTYPE 25 NAME_CONFLICT 26 NAME_MISMATCH 27 PARSE_ERROR 28 ACCESS_DENIED 29 UNKNOWN_SOURCE 30 RT_TO_PERM_FAILED 31 IPSET_WITH_TIMEOUT 32 BUILTIN_IPSET 33 ALREADY_SET 34 MISSING_IMPORT 35 DBUS_ERROR 36 BUILTIN_HELPER 37 NOT_APPLIED 38 INVALID_ACTION 100 INVALID_SERVICE 101 INVALID_PORT 102 INVALID_PROTOCOL 103 INVALID_INTERFACE 104 INVALID_ADDR 105 INVALID_FORWARD 106 INVALID_ICMPTYPE 107 INVALID_TABLE 108 INVALID_CHAIN 109 INVALID_TARGET 110 INVALID_IPV 111 INVALID_ZONE 112 INVALID_PROPERTY 113 INVALID_VALUE 114 INVALID_OBJECT 115 INVALID_NAME 116 INVALID_FILENAME 117 INVALID_DIRECTORY 118 INVALID_TYPE 119 INVALID_SETTING 120 INVALID_DESTINATION 121 INVALID_RULE 122 INVALID_LIMIT 123 INVALID_FAMILY 124 INVALID_LOG_LEVEL 125 INVALID_AUDIT_TYPE 126 INVALID_MARK 127 INVALID_CONTEXT 128 INVALID_COMMAND 129 INVALID_USER 130 INVALID_UID 131 INVALID_MODULE 132 INVALID_PASSTHROUGH 133 INVALID_MAC 134 INVALID_IPSET 135 INVALID_ENTRY 136 INVALID_OPTION 137 INVALID_HELPER 138 MISSING_TABLE 200 MISSING_CHAIN 201 MISSING_PORT 202 MISSING_PROTOCOL 203 MISSING_ADDR 204 MISSING_NAME 205 MISSING_SETTING 206 MISSING_FAMILY 207 NOT_RUNNING 252 NOT_AUTHORIZED 253 UNKNOWN_ERROR 254
firewall-applet(1), firewalld(1), firewall-cmd(1), firewall-config(1), firewallctl(1), firewalld.conf(5), firewalld.direct(5), firewalld.dbus(5), firewalld.icmptype(5), firewalld.lockdown-whitelist(5), firewall-offline-cmd(1), firewalld.richlanguage(5), firewalld.service(5), firewalld.zone(5), firewalld.zones(5), firewalld.ipset(5), firewalld.helper(5)