summaryrefslogtreecommitdiff
path: root/plugins/modules
diff options
context:
space:
mode:
authoromnom62 <75066712+omnom62@users.noreply.github.com>2026-08-27 04:00:17 +1000
committerGitHub <noreply@github.com>2026-08-26 21:00:17 +0300
commit433a274ce636573953f8a4be9c68743a2ed1d0a5 (patch)
treeda9e545f9ffdf50289c1b94580450a456177d74b /plugins/modules
parent899a6bf7955592ec40670944a860a1bee97b432c (diff)
downloadvyos.vyos-433a274ce636573953f8a4be9c68743a2ed1d0a5.tar.gz
vyos.vyos-433a274ce636573953f8a4be9c68743a2ed1d0a5.zip
T8220: Firewall Zone Policy support (#447)
Add zone base policy firewall module
Diffstat (limited to 'plugins/modules')
-rw-r--r--plugins/modules/vyos_firewall_global.py85
1 files changed, 85 insertions, 0 deletions
diff --git a/plugins/modules/vyos_firewall_global.py b/plugins/modules/vyos_firewall_global.py
index 9abeb5a1..4967a564 100644
--- a/plugins/modules/vyos_firewall_global.py
+++ b/plugins/modules/vyos_firewall_global.py
@@ -280,6 +280,91 @@ options:
- notice
- info
- debug
+ zone:
+ description:
+ - Defines a firewall zone.
+ type: list
+ elements: dict
+ suboptions:
+ name:
+ description:
+ - Name of the firewall zone.
+ type: str
+ required: true
+ description:
+ description:
+ - Allows you to specify a brief description for the firewall zone.
+ type: str
+ default_log:
+ description:
+ - Specifies whether or not to log packets for the firewall zone.
+ type: bool
+ local_zone:
+ description:
+ - Specifies whether or not the zone is local.
+ type: bool
+ default_action:
+ description:
+ - Specifies the default action for the zone.
+ type: str
+ default: drop
+ choices:
+ - drop
+ - reject
+ interfaces:
+ description:
+ - Specifies the interfaces associated with the zone.
+ type: list
+ elements: str
+ intra_zone_filtering:
+ description:
+ - Specifies a policy for intra-zone filtering.
+ type: dict
+ suboptions:
+ action:
+ description:
+ - Action for intra-zone traffic.
+ type: str
+ choices:
+ - accept
+ - drop
+ firewall:
+ description:
+ - Firewall ruleset to apply to intra-zone traffic.
+ type: dict
+ suboptions:
+ name:
+ description:
+ - Name of the firewall ruleset to apply to intra-zone traffic.
+ type: str
+ ipv6_name:
+ description:
+ - Name of the IPv6 firewall ruleset to apply to intra-zone traffic.
+ type: str
+ sources:
+ description:
+ - Specifies the source zones for the firewall rules.
+ type: list
+ elements: dict
+ suboptions:
+ zone:
+ description:
+ - Name of the source zone.
+ type: str
+ required: true
+ firewall:
+ description:
+ - Firewall ruleset to apply to the source zone.
+ type: dict
+ suboptions:
+ name:
+ description:
+ - Name of the firewall ruleset to apply to the source zone.
+ type: str
+ ipv6_name:
+ description:
+ - Name of the IPv6 firewall ruleset to apply to the source zone.
+ type: str
running_config:
description:
- >