| Key |
Returned |
Description |
|
active_zones
boolean
|
success |
Gather active zones only if turn it true.
|
|
collected_zones
list
|
success |
A list of collected zones.
Sample:
['external', 'internal']
|
|
firewalld_info
complex
|
success |
Returns various information about firewalld configuration.
|
| |
default_zones
string
|
success |
The zone name of default zone.
Sample:
public
|
| |
version
string
|
success |
The version information of firewalld.
Sample:
0.8.2
|
| |
zones
complex
|
success |
A dict of zones to gather information.
|
| |
|
zone
complex
|
success |
The zone name registered in firewalld.
Sample:
external
|
| |
|
|
forward
boolean
|
success |
The network interface forwarding.
This parameter supports on python-firewall 0.9.0(or later) and is not collected in earlier versions.
|
| |
|
|
forward_ports
list
|
success |
A list of forwarding port pair with protocol.
Sample:
['icmp', 'ipv6-icmp']
|
| |
|
|
icmp_block_inversion
boolean
|
success |
The ICMP block inversion to block all ICMP requests.
|
| |
|
|
icmp_blocks
list
|
success |
A list of blocking icmp protocol.
Sample:
['echo-request']
|
| |
|
|
interfaces
list
|
success |
A list of network interfaces.
Sample:
['eth0', 'eth1']
|
| |
|
|
masquerade
boolean
|
success |
The network interface masquerading.
|
| |
|
|
ports
list
|
success |
A list of network port with protocol.
Sample:
[['22', 'tcp'], ['80', 'tcp']]
|
| |
|
|
protocols
list
|
success |
A list of network protocol.
Sample:
['icmp', 'ipv6-icmp']
|
| |
|
|
rich_rules
list
|
success |
A list of rich language rule.
Sample:
['rule protocol value="icmp" reject', 'rule priority="32767" reject']
|
| |
|
|
services
list
|
success |
A list of network services.
Sample:
['dhcp', 'dns', 'ssh']
|
| |
|
|
source_ports
list
|
success |
A list of network source port with protocol.
Sample:
[['30000', 'tcp'], ['30001', 'tcp']]
|
| |
|
|
sources
list
|
success |
A list of source network address.
Sample:
['172.16.30.0/24', '172.16.31.0/24']
|
| |
|
|
target
string
|
success |
A list of services in the zone.
Sample:
ACCEPT
|
|
undefined_zones
list
|
success |
A list of undefined zones in zones option.
undefined_zones will be ignored for gathering process.
Sample:
['foo', 'bar']
|