]> git.proxmox.com Git - pve-firewall.git/commit - src/PVE/Firewall.pm
fix #4556: introduce 'dc' and 'vm' prefix for IPSets
authorLeo Nunner <l.nunner@proxmox.com>
Wed, 7 Jun 2023 10:17:48 +0000 (12:17 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 7 Jun 2023 13:12:56 +0000 (15:12 +0200)
commit856de23adb4129351026bbeefeff0534edddfe6f
tree8c224b97f460816d5afb378c7d773e5ca41fdac8
parent97f2bc6c681cb371fd2591adea1253e1e03b28f8
fix #4556: introduce 'dc' and 'vm' prefix for IPSets

to differentiate whether they should be taken from the datacenter config
or from the local config. The parser now accepts IPSets in the following
format:

    +dc/ipset
Looks for the IPSet on the Datacenter level.
    +vm/ipset
Looks for the IPSet on the VM level.
    +ipset
Uses the previous method of scoping, where it first looks at the
VM level and then at the Datacenter level.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
src/PVE/Firewall.pm