community.proxmox.proxmox_node_firewall module – Node-level firewall options management for Proxmox VE cluster
Note
This module is part of the community.proxmox collection (version 2.0.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.proxmox.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.proxmox.proxmox_node_firewall.
New in community.proxmox 2.0.0
Synopsis
Manage firewall options at the node level in Proxmox VE.
Requirements
The below requirements are needed on the host that executes this module.
proxmoxer >= 2.3
requests
Parameters
Parameter |
Comments |
|---|---|
Specify the target host of the Proxmox VE cluster. Uses the |
|
Specify the OTP. Uses the |
|
Specify the password to authenticate with. Uses the |
|
Specify the target port of the Proxmox VE cluster. Uses the |
|
Time limit for requests towards the Proxmox VE API. Default: |
|
Specify the token ID. Uses the |
|
Specify the token secret. Uses the |
|
Specify the user to authenticate with. Uses the |
|
Path to a local certificate, which will be used to verify TLS connections. Ignored if |
|
Log level for fowarded traffic. Choices:
|
|
Log level for incoming traffic. Choices:
|
|
Log level for outgoing traffic. Choices:
|
|
Enable NDP (Neighbor Discovery Protocol). Choices:
|
|
Allow invalid packets on connection tracking. Choices:
|
|
Enable conntrack helpers for specific protocols. |
|
Maximum number of tracked connections. Minimum value is 32768. Default: |
|
Conntrack established timeout in seconds. Minimum value is 7875. Default: |
|
Conntrack syn receive timeout. Values between 30 - 60. Default: |
|
Enable nftables based firewall. Choices:
|
|
Name of the node to configure the firewall on. |
|
Enable SMURFS filter. Choices:
|
|
Enable synflood protection. Choices:
|
|
Synflood protection rate burst by IP source address. Default: |
|
Synflood protection rate syn/sec by IP source address. Default: |
|
Log level for SMURFS filter. Choices:
|
|
Enable or disable the firewall node-wide. Choices:
|
|
Log level for illegal TCP flags filter. Choices:
|
|
Filter illegal combinations of TCP flags. Choices:
|
|
Validate the TLS certificates used for the connection to the Proxmox VE API. May be set through the environment variable Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Action group: community.proxmox.proxmox |
Use |
|
Support: full |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
See Also
See also
- Proxmox VE Firewall configuration
Complete reference of Proxmox VE Firewall
- Proxmox VE node-wide configuration
Complete reference of Proxmox VE Firewall host configuration
- community.proxmox.proxmox_node_firewall_info
Get node-level firewall options for Proxmox VE cluster.
- community.proxmox.proxmox_cluster_firewall
Cluster-level firewall options management for Proxmox VE cluster.
- Authentication
Complete guide for the Proxmox API authentication
Examples
- name: Configure traffic log level
community.proxmox.proxmox_node_firewall:
state: enabled
node_name: pve-001
log_level_in: alert
log_level_out: alert
log_level_forward: alert
- name: Disable node-wide firewall
community.proxmox.proxmox_node_firewall:
state: disabled
node_name: pve-001
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Whether the firewall is enabled node-wide. Returned: on success Sample: |
|
Log level setting for fowarded traffic. Returned: on success Sample: |
|
Log level setting for incoming traffic. Returned: on success Sample: |
|
Log level setting for outgoing traffic. Returned: on success Sample: |
|
A short message on what the module did. Returned: always Sample: |
|
Whether NDP (Neighbor Discovery Protocol) is enabled. Returned: on success Sample: |
|
Whether invalid packets are allowed on connection tracking. Returned: on success Sample: |
|
Conntrack helpers for specific protocols. Returned: on success |
|
Maximum number of tracked connections. Returned: on success Sample: |
|
Conntrack established timeout in seconds. Returned: on success Sample: |
|
Conntrack syn recv timeout in seconds. Returned: on success Sample: |
|
Whether nftables based firewall is enabled. Returned: on success Sample: |
|
The name of the node. Returned: on success Sample: |
|
Whether SMURFS filter is enabled. Returned: on success Sample: |
|
Whether synflood protection is enabled. Returned: on success Sample: |
|
Synflood protection rate burst by IP source address. Returned: on success Sample: |
|
Synflood protection rate syn/sec by IP source address. Returned: on success Sample: |
|
Log level setting for SMURFS filter. Returned: on success |
|
Log level setting for illegal TCP flags filter. Returned: on success |
|
Whether illegal combinations of TCP flags are filtered. Returned: on success Sample: |