Support for firewalld
Add a service for zone. If zone is omitted, default zone will be used.
CLI Example:
To assign a service to a specific zone
Print default zone for connections and interfaces
CLI Example:
salt '*' firewalld.default_zone
Delete an existing service
CLI Example:
By default firewalld will be reloaded. However, to avoid reloading you need to specify the restart as False
Delete an existing zone
CLI Example:
By default firewalld will be reloaded. However, to avoid reloading you need to specify the restart as False
Print predefined icmptypes
CLI Example:
salt '*' firewalld.get_icmp_types
Print predefined services
CLI Example:
salt '*' firewalld.get_services
Print predefined zones
CLI Example:
salt '*' firewalld.get_zones
List everything added for or enabled in a zone
CLI Example:
List a specific zone
List services added for zone as a space separated list. If zone is omitted, default zone will be used.
CLI Example:
List a specific zone
List everything added for or enabled in all zones
CLI Example:
salt '*' firewalld.list_zones
Add a new service
CLI Example:
By default firewalld will be reloaded. However, to avoid reloading you need to specify the restart as False
Add a new zone
CLI Example:
By default firewalld will be reloaded. However, to avoid reloading you need to specify the restart as False
Remove a service from zone. This option can be specified multiple times. If zone is omitted, default zone will be used.
CLI Example:
To remove a service from a specific zone
Set default zone
CLI Example:
Return version from firewall-cmd
CLI Example:
salt '*' firewalld.version
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2014.7.2