FIREWALL-CMD(1) firewall-cmd FIREWALL-CMD(1)

NAME

firewall-cmd - firewalld command line client

SYNOPSIS

firewall-cmd [OPTIONS...]

DESCRIPTION

   firewall-cmd is the 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.

OPTIONS

The following options are supported:

General Options

   -h, --help
Prints a short help text and exits. -V, --version
Print the version string of firewalld. This option is not combinable with other
options. -q, --quiet
Do not print status messages.

Status Options

   --state
Check whether the firewalld daemon is active (i.e. running). Returns an exit
code 0 if it is active, NOT_RUNNING otherwise (see the section called “EXIT
CODES”). This will also print the state to STDOUT. --reload
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. --complete-reload
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.

Permanent Options

   --permanent
The permanent option --permanent can be used to set options permanently. These
changes are not effective immediately, only after service restart/reload or
system reboot. Without the --permanent option, a change will only be part of the
runtime configuration. The --permanent option can not be used with all options. If you want to make a change in runtime and permanent configuration, use the
same call with and without the--permanent option. The --permanent option can be optionally added to all options further down where
it is supported.

Zone Options

   --get-default-zone
Print default zone for connections and interfaces. --set-default-zone=zone
Set 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. This is a runtime and permanent change. --get-active-zones
Print currently active zones altogether with interfaces and sources used in
these zones. Active zones are zones, that have a binding to an interface or
source. The output format is: zone1
interfaces: interface1 interface2 ..
sources: source1 ..
zone2
interfaces: interface3 ..
zone3
sources: source2 .. If there are no interfaces or sources bound to the zone, the corresponding line
will be omitted. [--permanent] --get-zones
Print predefined zones as a space separated list. [--permanent] --get-services
Print predefined services as a space separated list. [--permanent] --get-icmptypes
Print predefined icmptypes as a space separated list. [--permanent] --get-zone-of-interface=interface
Print the name of the zone the interface is bound to or no zone. [--permanent] --get-zone-of-source=source[/mask]
Print the name of the zone the source[/mask] is bound to or no zone. [--permanent] --list-all-zones
List everything added for or enabled in all zones. The output format is: zone1
interfaces: interface1 ..
sources: source1 ..
services: service1 ..
ports: port1 ..
forward-ports:
forward-port1
..
icmp-blocks: icmp-type1 ..
rich rules:
rich-rule1
..
.. --permanent --new-zone=zone
Add a new permanent zone. --permanent --delete-zone=zone
Delete an existing permanent zone. --permanent [--zone=zone] --get-target
Get the target of a permanent zone. --permanent [--zone=zone] --set-target=target
Set the target of a permanent zone. target is one of: default, ACCEPT, DROP,
%%REJECT%%

Options to Adapt and Query Zones

   Options in this section affect only one particular zone. If used with --zone=zone
option, they affect the zone zone. If the option is omitted, they affect default
zone (see --get-default-zone). [--permanent] [--zone=zone] --list-all
List everything added for or enabled in zone. If zone is omitted, default zone
will be used. [--permanent] [--zone=zone] --list-services
List services added for zone as a space separated list. If zone is omitted,
default zone will be used. [--permanent] [--zone=zone] --add-service=service [--timeout=timeval]
Add a service for zone. If zone is omitted, default zone will be used. This
option can be specified multiple times. If a timeout is supplied, the rule will
be active for the specified amount of time and will be removed automatically
afterwards. timeval is either a number (of seconds) or number followed by one
of characters s (seconds), m (minutes), h (hours), for example 20m or 1h. The service is one of the firewalld provided services. To get a list of the
supported services, use firewall-cmd --get-services. The --timeout option is not combinable with the --permanent option. [--permanent] [--zone=zone] --remove-service=service
Remove a service from zone. This option can be specified multiple times. If zone
is omitted, default zone will be used. [--permanent] [--zone=zone] --query-service=service
Return whether service has been added for zone. If zone is omitted, default zone
will be used. Returns 0 if true, 1 otherwise. [--permanent] [--zone=zone] --list-ports
List ports added for zone as a space separated list. A port is of the form
portid[-portid]/protocol, it can be either a port and protocol pair or a port
range with a protocol. If zone is omitted, default zone will be used. [--permanent] [--zone=zone] --add-port=portid[-portid]/protocol [--timeout=timeval]
Add the port for zone. If zone is omitted, default zone will be used. This
option can be specified multiple times. If a timeout is supplied, the rule will
be active for the specified amount of time and will be removed automatically
afterwards. timeval is either a number (of seconds) or number followed by one
of characters s (seconds), m (minutes), h (hours), for example 20m or 1h. The port can either be a single port number or a port range portid-portid. The
protocol can either be tcp or udp. The --timeout option is not combinable with the --permanent option. [--permanent] [--zone=zone] --remove-port=portid[-portid]/protocol
Remove the port from zone. If zone is omitted, default zone will be used. This
option can be specified multiple times. [--permanent] [--zone=zone] --query-port=portid[-portid]/protocol
Return whether the port has been added for zone. If zone is omitted, default
zone will be used. Returns 0 if true, 1 otherwise. [--permanent] [--zone=zone] --list-icmp-blocks
List Internet Control Message Protocol (ICMP) type blocks added for zone as a
space separated list. If zone is omitted, default zone will be used. [--permanent] [--zone=zone] --add-icmp-block=icmptype [--timeout=timeval]
Add an ICMP block for icmptype for zone. If zone is omitted, default zone will
be used. This option can be specified multiple times. If a timeout is supplied,
the rule will be active for the specified amount of time and will be removed
automatically afterwards. timeval is either a number (of seconds) or number
followed by one of characters s (seconds), m (minutes), h (hours), for example
20m or 1h. The icmptype is the one of the icmp types firewalld supports. To get a listing
of supported icmp types: firewall-cmd --get-icmptypes The --timeout option is not combinable with the --permanent option. [--permanent] [--zone=zone] --remove-icmp-block=icmptype
Remove the ICMP block for icmptype from zone. If zone is omitted, default zone
will be used. This option can be specified multiple times. [--permanent] [--zone=zone] --query-icmp-block=icmptype
Return whether an ICMP block for icmptype has been added for zone. If zone is
omitted, default zone will be used. Returns 0 if true, 1 otherwise. [--permanent] [--zone=zone] --list-forward-ports
List IPv4 forward ports added for zone as a space separated list. If zone is
omitted, default zone will be used. For IPv6 forward ports, please use the rich language. [--permanent] [--zone=zone]
--add-forward-port=port=portid[-portid]:proto=protocol[:toport=portid[-portid]][:toaddr=address[/mask]]
[--timeout=timeval]
Add the IPv4 forward port for zone. If zone is omitted, default zone will be
used. This option can be specified multiple times. If a timeout is supplied, the
rule will be active for the specified amount of time and will be removed
automatically afterwards. timeval is either a number (of seconds) or number
followed by one of characters s (seconds), m (minutes), h (hours), for example
20m or 1h. The port can either be a single port number portid or a port range
portid-portid. The protocol can either be tcp or udp. The destination address is
a simple IP address. The --timeout option is not combinable with the --permanent option. For IPv6 forward ports, please use the rich language. [--permanent] [--zone=zone]
--remove-forward-port=port=portid[-portid]:proto=protocol[:toport=portid[-portid]][:toaddr=address[/mask]]
Remove the IPv4 forward port from zone. If zone is omitted, default zone will be
used. This option can be specified multiple times. For IPv6 forward ports, please use the rich language. [--permanent] [--zone=zone]
--query-forward-port=port=portid[-portid]:proto=protocol[:toport=portid[-portid]][:toaddr=address[/mask]]
Return whether the IPv4 forward port has been added for zone. If zone is
omitted, default zone will be used. Returns 0 if true, 1 otherwise. For IPv6 forward ports, please use the rich language. [--permanent] [--zone=zone] --add-masquerade [--timeout=timeval]
Enable IPv4 masquerade for zone. If zone is omitted, default zone will be used.
If a timeout is supplied, masquerading will be active for the specified amount
of time. timeval is either a number (of seconds) or number followed by one of
characters s (seconds), m (minutes), h (hours), for example 20m or 1h.
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. The --timeout option is not combinable with the --permanent option. For IPv6 masquerading, please use the rich language. [--permanent] [--zone=zone] --remove-masquerade
Disable IPv4 masquerade for zone. If zone is omitted, default zone will be used.
If the masquerading was enabled with a timeout, it will be disabled also. For IPv6 masquerading, please use the rich language. [--permanent] [--zone=zone] --query-masquerade
Return whether IPv4 masquerading has been enabled for zone. If zone is omitted,
default zone will be used. Returns 0 if true, 1 otherwise. For IPv6 masquerading, please use the rich language. [--permanent] [--zone=zone] --list-rich-rules
List rich language rules added for zone as a newline separated list. If zone is
omitted, default zone will be used. [--permanent] [--zone=zone] --add-rich-rule='rule' [--timeout=timeval]
Add rich language rule 'rule' for zone. This option can be specified multiple
times. If zone is omitted, default zone will be used. If a timeout is supplied,
the rule will be active for the specified amount of time and will be removed
automatically afterwards. timeval is either a number (of seconds) or number
followed by one of characters s (seconds), m (minutes), h (hours), for example
20m or 1h. For the rich language rule syntax, please have a look at
firewalld.richlanguage(5). The --timeout option is not combinable with the --permanent option. [--permanent] [--zone=zone] --remove-rich-rule='rule'
Remove rich language rule 'rule' from zone. This option can be specified
multiple times. If zone is omitted, default zone will be used. For the rich language rule syntax, please have a look at
firewalld.richlanguage(5). [--permanent] [--zone=zone] --query-rich-rule='rule'
Return whether a rich language rule 'rule' has been added for zone. If zone is
omitted, default zone will be used. Returns 0 if true, 1 otherwise. For the rich language rule syntax, please have a look at
firewalld.richlanguage(5).

Options to Handle Bindings of Interfaces

   Binding an interface to a zone means that this zone settings are used to restrict
traffic via the interface. Options in this section affect only one particular zone. If used with --zone=zone
option, they affect the zone zone. If the option is omitted, they affect default
zone (see --get-default-zone). For a list of predefined zones use firewall-cmd --get-zones. An interface name is a string up to 16 characters long, that may not contain ' ',
'/', '!' and '*'. [--permanent] [--zone=zone] --list-interfaces
List interfaces that are bound to zone zone as a space separated list. If zone
is omitted, default zone will be used. [--permanent] [--zone=zone] --add-interface=interface
Bind interface interface to zone zone. If zone is omitted, default zone will be
used. As a end user you don't need this in most cases, because NetworkManager adds
interfaces into zones automatically. For permanent association of interface with
a zone, see 'How to set or change a zone for a connection?' in
firewalld.zones(5). [--zone=zone] --change-interface=interface
Change zone the interface interface is bound to to zone zone. If zone is
omitted, default zone will be used. If old and new zone are the same, the call
will be ignored without an error. If the interface has not been bound to a zone
before, it will behave like --add-interface. [--permanent] [--zone=zone] --query-interface=interface
Query whether interface interface is bound to zone zone. Returns 0 if true, 1
otherwise. [--permanent] [--zone=zone] --remove-interface=interface
Remove binding of interface interface from zone zone. If zone is omitted,
default zone will be used.

Options to Handle Bindings of Sources

   Binding a source to a zone means that this zone settings will be used to restrict
traffic from this source. A source address or address range is either an IP address or a network IP address
with a mask for IPv4 or IPv6. 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. Options in this section affect only one particular zone. If used with --zone=zone
option, they affect the zone zone. If the option is omitted, they affect default
zone (see --get-default-zone). For a list of predefined zones use firewall-cmd [--permanent] --get-zones. [--permanent] [--zone=zone] --list-sources
List sources that are bound to zone zone as a space separated list. If zone is
omitted, default zone will be used. [--permanent] [--zone=zone] --add-source=source[/mask]
Bind source source[/mask] to zone zone. If zone is omitted, default zone will be
used. [--zone=zone] --change-source=source[/mask]
Change zone the source source[/mask] is bound to to zone zone. If zone is
omitted, default zone will be used. If old and new zone are the same, the call
will be ignored without an error. If the source has not been bound to a zone
before, it will behave like --add-source. [--permanent] [--zone=zone] --query-source=source[/mask]
Query whether the source source[/mask] is bound to the zone zone. Returns 0 if
true, 1 otherwise. [--permanent] [--zone=zone] --remove-source=source[/mask]
Remove binding of source source[/mask] from zone zone. If zone is omitted,
default zone will be used.

Service Options

   --permanent --new-service=service
Add a new permanent service. --permanent --delete-service=service
Delete an existing permanent service.

Internet Control Message Protocol (ICMP) type Options

   --permanent --new-icmptype=icmptype
Add a new permanent icmptype. --permanent --delete-icmptype=icmptype
Delete an existing permanent icmptype.

Direct Options

   The direct options give a more direct access to the firewall. These options require
user to know basic iptables concepts, i.e. table (filter/mangle/nat/...), chain
(INPUT/OUTPUT/FORWARD/...), commands (-A/-D/-I/...), parameters (-p/-s/-d/-j/...)
and targets (ACCEPT/DROP/REJECT/...). Direct options should be used only as a last resort when it's not possible to use
for example --add-service=service or --add-rich-rule='rule'. The first argument of each option has to be ipv4 or ipv6 or eb. With ipv4 it will be
for IPv4 (iptables(8)), with ipv6 for IPv6 (ip6tables(8)) and with eb for ethernet
bridges (ebtables(8)). [--permanent] --direct --get-all-chains
Get all chains added to all tables. This option concerns only chains previously added with --direct --add-chain. [--permanent] --direct --get-chains { ipv4 | ipv6 | eb } table
Get all chains added to table table as a space separated list. This option concerns only chains previously added with --direct --add-chain. [--permanent] --direct --add-chain { ipv4 | ipv6 | eb } table chain
Add a new chain with name chain to table table. There already exist basic chains to use with direct options, for example
INPUT_direct chain (see iptables-save | grep direct output for all of them).
These chains are jumped into before chains for zones, i.e. every rule put into
INPUT_direct will be checked before rules in zones. [--permanent] --direct --remove-chain { ipv4 | ipv6 | eb } table chain
Remove the chain with name chain from table table. [--permanent] --direct --query-chain { ipv4 | ipv6 | eb } table chain
Return whether a chain with name chain exists in table table. Returns 0 if true,
1 otherwise. This option concerns only chains previously added with --direct --add-chain. [--permanent] --direct --get-all-rules
Get all rules added to all chains in all tables as a newline separated list of
the priority and arguments. [--permanent] --direct --get-rules { ipv4 | ipv6 | eb } table chain
Get all rules added to chain chain in table table as a newline separated list of
the priority and arguments. [--permanent] --direct --add-rule { ipv4 | ipv6 | eb } table chain priority args
Add a rule with the arguments args to chain chain in table table with priority
priority. The priority is 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. [--permanent] --direct --remove-rule { ipv4 | ipv6 | eb } table chain priority args
Remove a rule with priority and the arguments args from chain chain in table
table. [--permanent] --direct --remove-rules { ipv4 | ipv6 | eb } table chain
Remove all rules in the chain with name chain exists in table table. This option concerns only rules previously added with --direct --add-rule in
this chain. [--permanent] --direct --query-rule { ipv4 | ipv6 | eb } table chain priority args
Return whether a rule with priority and the arguments args exists in chain chain
in table table. Returns 0 if true, 1 otherwise. --direct --passthrough { ipv4 | ipv6 | eb } args
Pass a command through to the firewall. args can 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. [--permanent] --direct --get-all-passthroughs
Get all passthrough rules as a newline separated list of the ipv value and
arguments. [--permanent] --direct --get-passthroughs { ipv4 | ipv6 | eb }
Get all passthrough rules for the ipv value as a newline separated list of the
priority and arguments. [--permanent] --direct --add-passthrough { ipv4 | ipv6 | eb } args
Add a passthrough rule with the arguments args for the ipv value. [--permanent] --direct --remove-passthrough { ipv4 | ipv6 | eb } args
Remove a passthrough rule with the arguments args for the ipv value. [--permanent] --direct --query-passthrough { ipv4 | ipv6 | eb } args
Return whether a passthrough rule with the arguments args exists for the ipv
value. Returns 0 if true, 1 otherwise.

Lockdown 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-on
Enable 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. This is a runtime and permanent change. --lockdown-off
Disable lockdown. This is a runtime and permanent change. --query-lockdown
Query whether lockdown is enabled. Returns 0 if lockdown is enabled, 1
otherwise.

Lockdown Whitelist Options

   The lockdown whitelist can contain commands, contexts, users and user 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. context
2. uid
3. user
4. command [--permanent] --list-lockdown-whitelist-commands
List all command lines that are on the whitelist. [--permanent] --add-lockdown-whitelist-command=command
Add the command to the whitelist. [--permanent] --remove-lockdown-whitelist-command=command
Remove the command from the whitelist. [--permanent] --query-lockdown-whitelist-command=command
Query whether the command is on the whitelist. Returns 0 if true, 1 otherwise. [--permanent] --list-lockdown-whitelist-contexts
List all contexts that are on the whitelist. [--permanent] --add-lockdown-whitelist-context=context
Add the context context to the whitelist. [--permanent] --remove-lockdown-whitelist-context=context
Remove the context from the whitelist. [--permanent] --query-lockdown-whitelist-context=context
Query whether the context is on the whitelist. Returns 0 if true, 1 otherwise. [--permanent] --list-lockdown-whitelist-uids
List all user ids that are on the whitelist. [--permanent] --add-lockdown-whitelist-uid=uid
Add the user id uid to the whitelist. [--permanent] --remove-lockdown-whitelist-uid=uid
Remove the user id uid from the whitelist. [--permanent] --query-lockdown-whitelist-uid=uid
Query whether the user id uid is on the whitelist. Returns 0 if true, 1
otherwise. [--permanent] --list-lockdown-whitelist-users
List all user names that are on the whitelist. [--permanent] --add-lockdown-whitelist-user=user
Add the user name user to the whitelist. [--permanent] --remove-lockdown-whitelist-user=user
Remove the user name user from the whitelist. [--permanent] --query-lockdown-whitelist-user=user
Query whether the user name user is on the whitelist. Returns 0 if true, 1
otherwise.

Panic Options

   --panic-on
Enable panic mode. 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. This is a runtime only change. --panic-off
Disable panic mode. After disabling panic mode established connections might
work again, if panic mode was enabled for a short period of time. This is a runtime only change. --query-panic
Returns 0 if panic mode is enabled, 1 otherwise.

EXAMPLES

   For more examples see http://fedoraproject.org/wiki/FirewallD

Example 1

Enable http service in default zone. This is runtime only change, i.e. effective

until restart.

   firewall-cmd --add-service=http

Example 2

Enable port 443/tcp immediately and permanently in default zone. To make the change

effective immediately and also after restart we need two commands. The first command

makes the change in runtime configuration, i.e. makes it effective immediately,

until restart. The second command makes the change in permanent configuration, i.e.

makes it effective after restart.

   firewall-cmd --add-port=443/tcp
firewall-cmd --permanent --add-port=443/tcp

EXIT CODES

   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 │
├────────────────────┼──────┤
│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 │
├────────────────────┼──────┤
│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 │
└────────────────────┴──────┘

SEE ALSO

   firewall-applet(1), firewalld(1), firewall-cmd(1), firewall-config(1),
firewalld.conf(5), firewalld.direct(5), firewalld.icmptype(5), firewalld.lockdown-
whitelist(5), firewall-offline-cmd(1), firewalld.richlanguage(5),
firewalld.service(5), firewalld.zone(5), firewalld.zones(5)

NOTES

   firewalld home page at fedorahosted.org:
http://fedorahosted.org/firewalld/ More documentation with examples:
http://fedoraproject.org/wiki/FirewallD

AUTHORS

   Thomas Woerner <twoerner@redhat.com>
Developer Jiri Popelka <jpopelka@redhat.com>
Developer

firewalld 0.3.9 FIREWALL-CMD(1)

firewall-cmd.man的更多相关文章

  1. Red Hat Enterprise Linux7的安装与oracle 12c的安装

    Red Hat Enterprise Linux7的安装与oracle 12c的安装 本文档中用到的所有参数均位于文末附录 Red Hat Enterprise Linux7的安装 新建完虚拟机后,挂 ...

  2. 总zabbix配置-搭建-邮件报警-微信报警-监控mysql

    Centos7安装Zabbix4.0步骤 官方搭建zabbix4.0的环境要求: 1. 环境搭建LAMP 前提Centos系统安装完成:  确认一下: 1 2 cat /etc/redhat-rele ...

  3. linux vue项目+npm run build + nginx

    系统 环境 vue   nginx 步骤 1.打包vue项目 2.配置nginx 打包vue项目 1.项目配置   我们使用服务器的8000端口 2.打包 # npm run build 打包成功会创 ...

  4. 在linux上安装tomcat

    (1)主要参考https://jingyan.baidu.com/article/3065b3b6e0fad2becff8a419.html(这个看后基本知道怎么安装tomcat) 其次参考:http ...

  5. Centos7系统防火墙上开端口

    //permanent 永久生效 没有此参数重启失效 firewall -cmd --zone=public --add -port=80/tcp --permanent            //开 ...

  6. RHEL7、CentOS7防火墙管理

    经常start.stop.restart操作防火墙有两种方式: 1.service iptables stop 2./etc/init.d/iptables stop 但是经常会有这种错误,因为在RH ...

  7. 【原】【BG】-一次虚拟化环境实践简要记录

    部分涉及到Linux.Nginx.tomcat.MySQL等的点滴操作记录,时间长了,就忘掉了,偶尔整理一下操作的history,就此简要备份一下: [原][BG]-一次虚拟化环境实践简要记录: ht ...

  8. Linux下部署配置Nginx

    1.安装工具包 yum install -y wget 下载工具 yum install -y vim-enhanced vim编辑器 yum install -y make cmake gcc gc ...

  9. Linux下单机安装部署kafka及代码实现

    技术交流群:233513714 这几天研究了kafka的安装及使用,在网上找了很多教程但是均以失败告终,直到最后想起网络方面的问题最终才安装部署成功,下面就介绍一下kafka的安装部署及代码实现 一. ...

  10. CentOS 7 samba server 配置

    samba是linux上的文件共享服务软件,相当与Windows上的共享文件夹,当然也是要在同一网段上的. 当前用的版本是4.4.4,好吧!下面介绍怎么去安装配置它,here we go! 1. 安装 ...

随机推荐

  1. C#:特性

    #define IsText//添加一个宏,接触注释 using System; using System.Collections.Generic; using System.Diagnostics; ...

  2. Centos 忘记root密码怎么办?

    1 - 在启动grub菜单,选择编辑选项启动 2 - 按键盘e键,来进入编辑界面 3 - 找到Linux 16的那一行,将ro改为rw init=/sysroot/bin/sh 4 - 现在按下 Co ...

  3. Linux 命令整理 (有不正确的随时补充)

    du 概述: Linux下命令,统计目录(或文件)所占磁盘空间的大小. 语法: du[-abcDhHklmsSx][-L<符号连接>][-X<文件>][--block-size ...

  4. POI 导出文档整理

    1 通过模板获取workbook public static Workbook getWorkBook(String templatePath) { try { InputStream in = ne ...

  5. vue用mand-mobile ui做交易所移动版实战示例

    vue用mand-mobile ui做交易所移动版实战示例 先展示几个界面: 目录结构: main.js // The Vue build version to load with the `impo ...

  6. vuejs服务端渲染更好的SEO,SSR完全指南Nuxt.js静态站生成器

    vuejs服务端渲染更好的SEO,SSR完全指南Nuxt.js静态站生成器SSR 完全指南https://cn.vuejs.org/v2/guide/ssr.html在 2.3 发布后我们发布了一份完 ...

  7. bzoj2880

    打公式好麻烦 QAQ 为了节省时间去复习,原谅我引用一下别人的博客...http://blog.csdn.net/acdreamers/article/details/8542292 #include ...

  8. VMware vSphere 5.x 与 vSphere 6.0各版本功能特性对比

    各版本中的新特性及功能对比:   VMware vSphere 5.0 VMware vSphere 5.1 VMware vSphere 5.5 VMware vSphere 6.0 ESXi 5. ...

  9. dotnet Core 异步任务

    使用线程池中线程的任务启动方式 线程池提供了一个后台线程的池,独自管理线程,按需增加或减少线程池中的线程数.线程池中的线程用于执行一些动作后仍然返回线程池中. using System; using ...

  10. 20190402 管道符,分号,单引号,双引号,&&的使用

    :分号叫顺序执行 格式:命令:命令 && :前一条命令执行成功,后面命令继续执行:前面命令执行失败,后者不执行 格式:命令+空格&&空格+命令 || :两管道逻辑执行, ...