]> git.proxmox.com Git - pve-firewall.git/commit
only add VM chains if VM firewall is enabled
authorMira Limbeck <m.limbeck@proxmox.com>
Tue, 6 Aug 2019 08:25:14 +0000 (10:25 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 7 Aug 2019 07:35:44 +0000 (09:35 +0200)
commit6e0cd1c74affc1c89329ad63808d4b47a89de303
tree88aa7c49f9f3113c5d8559376e66a882086b0097
parentb0463f3a0063414df42d7e89bbcf41725c857fcb
only add VM chains if VM firewall is enabled

Before if a NIC had the firewall enabled and the MAC filter was active,
a rule was added to the tap device even if the VM firewall was not
enabled. This led to nested machines not being able to reach outside.

Testcase: Host <-> VM <-> CT all on the same bridge. Host and CT could
not reach each other because of the MAC filter.

Now we check if the VM firewall is enabled and only add the MAC and
IP filters then.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
(cherry picked from commit 033a15b372734fcfb390c3b747f67bfa4643dabd)
src/PVE/Firewall.pm