]> git.proxmox.com Git - pve-firewall.git/commit - src/PVE/API2/Firewall/Host.pm
api node: always pass cluster conf to node FW parser
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Jan 2020 11:55:13 +0000 (12:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Jan 2020 11:55:15 +0000 (12:55 +0100)
commitf78c7ca05b7037beef82ab57bcfd269d8b4adccc
tree6671ccf44a9009ca2182f1da307f1c1e4f0eef4b
parent75a12a9d84e749011676edc8a52afd6c685bbae2
api node: always pass cluster conf to node FW parser

As else the parsing may lead to "false positive" errors, as cluster
wide aliases and other definitions are seemingly missing.

Reproducer:
* add *cluster* alias
* add+enable *host* rule using that alias
* enable FW on DC and node level
* go to Node -> FW -> Options
* check journal/syslog for error like:
> pveproxy[1339680]: /etc/pve/nodes/dev6/host.fw (line 3) - errors in rule parameters: IN ACCEPT -source test123 -p tcp -sport 22 -log nolog
> pveproxy[1339680]:   source: no such alias 'test123'

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/API2/Firewall/Host.pm