Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Num body If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Str Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Dict Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str For NameStore Call AttributeLoad Call NameLoad NameLoad attr body If Call AttributeLoad NameLoad attr body If Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Dict NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Dict NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str Str If NameLoad body If CompareEq NameLoad Str body Return Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str Str If NameLoad body If CompareEq NameLoad Str body Return Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str Str If NameLoad body If CompareEq NameLoad Str body Return Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str Str If NameLoad body If CompareEq NameLoad Str body Return Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Dict Assign NameStore Str If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str For NameStore Call AttributeLoad Call NameLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad attr Call AttributeLoad NameLoad attr Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Dict NameLoad ListLoad Call AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index NameLoad Dict NameLoad ListLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If CompareIn Str ListComp SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index Num comprehension NameStore Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Str For NameStore Call AttributeLoad Call NameLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad If CompareIn NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad If CompareNotIn NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return Call NameLoad NameLoad decorator_list
N/A N/A 
Support for firewalld.

.. versionadded:: 2015.2.0
 __future__ absolute_import N/A logging N/A re salt.exceptions CommandExecutionError N/A salt.utils N/A log N/A N/A logging getLogger __name__ __virtual__ N/A N/A N/A N/A N/A 
    Check to see if firewall-cmd exists
     N/A N/A N/A N/A salt utils which firewall-cmd N/A N/A True N/A N/A False The firewalld execution module cannot be loaded: the firewall-cmd binary is not in the path. N/A __firewall_cmd N/A N/A cmd N/A N/A N/A 
    Return the firewall-cmd location
     N/A firewall_cmd N/A N/A {0} {1} format N/A N/A N/A salt utils which firewall-cmd cmd N/A out N/A N/A __salt__ N/A cmd.run_all firewall_cmd N/A N/A N/A out N/A retcode 0 N/A N/A N/A N/A out N/A stderr N/A N/A msg N/A out N/A stdout N/A N/A msg N/A out N/A stderr N/A N/A CommandExecutionError N/A N/A firewall-cmd failed: {0} format msg N/A N/A out N/A stdout N/A __mgmt N/A N/A name _type action N/A N/A N/A 
    Perform zone management
     N/A cmd N/A N/A --{0}-{1}={2} --permanent format action _type name N/A N/A __firewall_cmd cmd N/A version N/A N/A N/A N/A N/A 
    Return version from firewall-cmd

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.version
     N/A N/A __firewall_cmd --version N/A default_zone N/A N/A N/A N/A N/A 
    Print default zone for connections and interfaces

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.default_zone
     N/A N/A __firewall_cmd --get-default-zone N/A list_zones N/A N/A permanent N/A True N/A N/A 
    List everything added for or enabled in all zones

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.list_zones
     N/A zones N/A N/A cmd --list-all-zones N/A permanent N/A N/A cmd  --permanent N/A i N/A N/A N/A __firewall_cmd cmd splitlines N/A N/A N/A N/A i strip N/A N/A N/A bool N/A N/A re match ^[a-z0-9] i N/A re I N/A N/A zone_name N/A N/A i rstrip N/A N/A N/A id_ val N/A N/A N/A N/A i strip split : N/A N/A N/A zones get zone_name None N/A N/A N/A N/A N/A zones N/A zone_name update N/A id_ val N/A N/A N/A zones N/A zone_name N/A id_ val N/A zones N/A get_zones N/A N/A permanent N/A True N/A N/A 
    Print predefined zones

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.get_zones
     N/A cmd --get-zones N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd split N/A get_services N/A N/A permanent N/A True N/A N/A 
    Print predefined services

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.get_services
     N/A cmd --get-services N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd split N/A get_icmp_types N/A N/A permanent N/A True N/A N/A 
    Print predefined icmptypes

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.get_icmp_types
     N/A cmd --get-icmptypes N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd split N/A new_zone N/A N/A zone restart N/A True N/A N/A 
    Add a new zone

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.new_zone my_zone

    By default firewalld will be reloaded. However, to avoid reloading
    you need to specify the restart as False

    .. code-block:: bash

        salt '*' firewalld.new_zone my_zone False
     N/A out N/A __mgmt zone zone new N/A restart N/A N/A N/A out success N/A N/A N/A __firewall_cmd --reload N/A out N/A delete_zone N/A N/A zone restart N/A True N/A N/A 
    Delete an existing zone

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.delete_zone my_zone

    By default firewalld will be reloaded. However, to avoid reloading
    you need to specify the restart as False

    .. code-block:: bash

        salt '*' firewalld.delete_zone my_zone False
     N/A out N/A __mgmt zone zone delete N/A restart N/A N/A N/A out success N/A N/A N/A __firewall_cmd --reload N/A out N/A set_default_zone N/A N/A zone N/A N/A N/A 
    Set default zone

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.set_default_zone damian
     N/A N/A __firewall_cmd N/A N/A --set-default-zone={0} format zone N/A new_service N/A N/A name restart N/A True N/A N/A 
    Add a new service

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.new_service my_service

    By default firewalld will be reloaded. However, to avoid reloading
    you need to specify the restart as False

    .. code-block:: bash

        salt '*' firewalld.new_service my_service False
     N/A out N/A __mgmt name service new N/A restart N/A N/A N/A out success N/A N/A N/A __firewall_cmd --reload N/A out N/A delete_service N/A N/A name restart N/A True N/A N/A 
    Delete an existing service

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.delete_service my_service

    By default firewalld will be reloaded. However, to avoid reloading
    you need to specify the restart as False

    .. code-block:: bash

        salt '*' firewalld.delete_service my_service False
     N/A out N/A __mgmt name service delete N/A restart N/A N/A N/A out success N/A N/A N/A __firewall_cmd --reload N/A out N/A list_all N/A N/A zone permanent N/A None True N/A N/A 
    List everything added for or enabled in a zone

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.list_all

    List a specific zone

    .. code-block:: bash

        salt '*' firewalld.list_all my_zone
     N/A _zone N/A N/A id_ N/A zone N/A N/A cmd N/A N/A --zone={0} --list-all format zone N/A N/A cmd --list-all N/A permanent N/A N/A cmd  --permanent N/A i N/A N/A N/A __firewall_cmd cmd splitlines N/A N/A N/A N/A re match ^[a-z0-9] i N/A re I N/A N/A zone_name N/A N/A i rstrip N/A N/A N/A N/A i startswith N/A N/A N/A N/A N/A N/A _zone N/A zone_name N/A id_ append N/A N/A i strip N/A N/A N/A id_ val N/A N/A i split : 1 N/A id_ N/A N/A id_ strip N/A N/A N/A _zone get zone_name None N/A N/A N/A N/A N/A _zone N/A zone_name update N/A id_ N/A N/A N/A val strip N/A N/A N/A _zone N/A zone_name N/A id_ N/A N/A N/A val strip N/A _zone N/A list_services N/A N/A zone permanent N/A None True N/A N/A 
    List services added for zone as a space separated list.
    If zone is omitted, default zone will be used.

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.list_services

    List a specific zone

    .. code-block:: bash

        salt '*' firewalld.list_services my_zone
     N/A zone N/A N/A cmd N/A N/A --zone={0} --list-services format zone N/A N/A cmd --list-services N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd split N/A add_service N/A N/A service zone permanent N/A None True N/A N/A 
    Add a service for zone. If zone is omitted, default zone will be used.

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.add_service ssh

    To assign a service to a specific zone:

    .. code-block:: bash

        salt '*' firewalld.add_service ssh my_zone
     N/A zone N/A N/A cmd N/A N/A --zone={0} --add-service={1} format zone service N/A N/A cmd N/A N/A --add-service={0} format service N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A remove_service N/A N/A service zone permanent N/A None True N/A N/A 
    Remove a service from zone. This option can be specified multiple times.
    If zone is omitted, default zone will be used.

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.remove_service ssh

    To remove a service from a specific zone

    .. code-block:: bash

        salt '*' firewalld.remove_service ssh dmz
     N/A zone N/A N/A cmd N/A N/A --zone={0} --remove-service={1} format zone service N/A N/A cmd N/A N/A --remove-service={0} format service N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A get_masquerade N/A N/A zone permanent N/A None True N/A N/A 
    Show if masquerading is enabled on a zone.
    If zone is omitted, default zone will be used.

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.get_masquerade zone
     N/A zone_info N/A list_all zone permanent N/A N/A no N/A N/A N/A N/A zone_info N/A i N/A masquerade N/A 0 N/A i N/A N/A zone_info keys N/A N/A False N/A True N/A add_masquerade N/A N/A zone permanent N/A None True N/A N/A 
    Enable masquerade on a zone.
    If zone is omitted, default zone will be used.

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.add_masquerade

    To enable masquerade on a specific zone

    .. code-block:: bash

        salt '*' firewalld.add_masquerade dmz
     N/A zone N/A N/A cmd N/A N/A --zone={0} --add-masquerade format zone N/A N/A cmd --add-masquerade N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A remove_masquerade N/A N/A zone permanent N/A None True N/A N/A 
    Remove masquerade on a zone.
    If zone is omitted, default zone will be used.

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.remove_masquerade

    To remove masquerade on a specific zone

    .. code-block:: bash

        salt '*' firewalld.remove_masquerade dmz
     N/A zone N/A N/A cmd N/A N/A --zone={0} --remove-masquerade format zone N/A N/A cmd --remove-masquerade N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A add_port N/A N/A zone port permanent N/A True N/A N/A 
    Allow specific ports in a zone.

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.add_port internal 443/tcp
     N/A N/A N/A get_masquerade zone N/A N/A N/A add_masquerade zone N/A cmd N/A N/A --zone={0} --add-port={1} format zone port N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A remove_port N/A N/A zone port permanent N/A True N/A N/A 
    Remove a specific port from a zone.

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.remove_port internal 443/tcp
     N/A cmd N/A N/A --zone={0} --remove-port={1} format zone port N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A list_ports N/A N/A zone permanent N/A True N/A N/A 
    List all ports in a zone.

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.list_ports
     N/A cmd N/A N/A --zone={0} --list-ports format zone N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd split N/A add_port_fwd N/A N/A zone src dest proto dstaddr permanent N/A tcp True N/A N/A 
    Add port forwarding.

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.add_port_fwd public 80 443 tcp
     N/A N/A N/A get_masquerade zone N/A N/A N/A add_masquerade zone permanent N/A cmd N/A N/A --zone={0} --add-forward-port=port={1}:proto={2}:toport={3}:toaddr={4} format zone src proto dest dstaddr N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A remove_port_fwd N/A N/A zone src dest proto dstaddr permanent N/A tcp True N/A N/A 
    Remove Port Forwarding.

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.remove_port_fwd public 80 443 tcp
     N/A cmd N/A N/A --zone={0} --remove-forward-port=port={1}:proto={2}:toport={3}:toaddr={4} format zone src proto dest dstaddr N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A list_port_fwd N/A N/A zone permanent N/A True N/A N/A 
    List port forwarding

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.list_port_fwd public
     N/A ret N/A N/A cmd N/A N/A --zone={0} --list-forward-ports format zone N/A permanent N/A N/A cmd  --permanent N/A i N/A N/A N/A __firewall_cmd cmd splitlines N/A N/A N/A src proto dest addr N/A N/A i split : N/A N/A N/A ret append N/A Source port Protocol Destination port Destination address N/A N/A N/A src split = N/A 1 N/A N/A N/A proto split = N/A 1 N/A N/A N/A dest split = N/A 1 N/A N/A N/A addr split = N/A 1 N/A ret N/A block_icmp N/A N/A zone icmp permanent N/A True N/A N/A 
    Block a specific ICMP type on a zone

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.block_icmp zone echo-reply
     N/A N/A icmp N/A get_icmp_types permanent N/A N/A N/A N/A log error Invalid ICMP type N/A False N/A N/A icmp N/A list_icmp_block zone permanent N/A N/A N/A N/A log info ICMP block already exists N/A success N/A cmd N/A N/A --zone={0} --add-icmp-block={1} format zone icmp N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A allow_icmp N/A N/A zone icmp permanent N/A True N/A N/A 
    Allow a specific ICMP type on a zone

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.allow_icmp zone echo-reply
     N/A N/A icmp N/A get_icmp_types permanent N/A N/A N/A N/A log error Invalid ICMP type N/A False N/A N/A icmp N/A list_icmp_block zone permanent N/A N/A N/A N/A log info ICMP Type is already permitted N/A success N/A cmd N/A N/A --zone={0} --remove-icmp-block={1} format zone icmp N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A list_icmp_block N/A N/A zone permanent N/A True N/A N/A 
    List ICMP blocks on a zone

    .. versionadded:: 2015.8.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewlld.list_icmp_block zone
     N/A cmd N/A N/A --zone={0} --list-icmp-blocks format zone N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd split N/A make_permanent N/A N/A N/A N/A N/A 
    Make current runtime configuration permanent.

    .. versionadded:: 2016.3.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.make_permanent
     N/A N/A __firewall_cmd --runtime-to-permanent N/A get_interfaces N/A N/A zone permanent N/A True N/A N/A 
    List interfaces bound to a zone

    .. versionadded:: 2016.3.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.get_interfaces zone
     N/A cmd N/A N/A --zone={0} --list-interfaces format zone N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd split N/A add_interface N/A N/A zone interface permanent N/A True N/A N/A 
    Bind an interface to a zone

    .. versionadded:: 2016.3.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.add_interface zone eth0
     N/A N/A interface N/A get_interfaces zone permanent N/A N/A N/A N/A log info Interface is already bound to zone. N/A cmd N/A N/A --zone={0} --add-interface={1} format zone interface N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A remove_interface N/A N/A zone interface permanent N/A True N/A N/A 
    Remove an interface bound to a zone

    .. versionadded:: 2016.3.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.remove_interface zone eth0
     N/A N/A interface N/A get_interfaces zone permanent N/A N/A N/A N/A log info Interface is not bound to zone. N/A cmd N/A N/A --zone={0} --remove-interface={1} format zone interface N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A get_sources N/A N/A zone permanent N/A True N/A N/A 
    List sources bound to a zone

    .. versionadded:: 2016.3.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.get_sources zone
     N/A cmd N/A N/A --zone={0} --list-sources format zone N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd split N/A add_source N/A N/A zone source permanent N/A True N/A N/A 
    Bind a source to a zone

    .. versionadded:: 2016.3.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.add_source zone 192.168.1.0/24
     N/A N/A source N/A get_sources zone permanent N/A N/A N/A N/A log info Source is already bound to zone. N/A cmd N/A N/A --zone={0} --add-source={1} format zone source N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A remove_source N/A N/A zone source permanent N/A True N/A N/A 
    Remove a source bound to a zone

    .. versionadded:: 2016.3.0

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.remove_source zone 192.168.1.0/24
     N/A N/A source N/A get_sources zone permanent N/A N/A N/A N/A log info Source is not bound to zone. N/A cmd N/A N/A --zone={0} --remove-source={1} format zone source N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A get_rich_rules N/A N/A zone permanent N/A True N/A N/A 
    List rich rules bound to a zone

    .. versionadded:: Boron

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.get_rich_rules zone
     N/A cmd N/A N/A --zone={0} --list-rich-rules format zone N/A permanent N/A N/A cmd  --permanent N/A N/A N/A N/A __firewall_cmd cmd splitlines N/A add_rich_rule N/A N/A zone rule permanent N/A True N/A N/A 
    Add a rich rule to a zone

    .. versionadded:: Boron

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.add_rich_rule zone 'rule'
     N/A cmd N/A N/A --zone={0} --add-rich-rule='{1}' format zone rule N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A remove_rich_rule N/A N/A zone rule permanent N/A True N/A N/A 
    Add a rich rule to a zone

    .. versionadded:: Boron

    CLI Example:

    .. code-block:: bash

        salt '*' firewalld.remove_rich_rule zone 'rule'
     N/A cmd N/A N/A --zone={0} --remove-rich-rule='{1}' format zone rule N/A permanent N/A N/A cmd  --permanent N/A N/A __firewall_cmd cmd N/A