]> git.proxmox.com Git - pve-common.git/commit
network: add support for disabling bridge learning on tap|veth|fwln ports
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 24 Sep 2021 08:48:54 +0000 (10:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Mar 2022 16:20:12 +0000 (17:20 +0100)
commit354ec8dee37d481ebae49b488349a8e932dce736
treed92e00237b0ae7ca581f12cb29ca11f5eb36b349
parentf44838ff41533c18db98ec1a39bb7bd696b4343d
network: add support for disabling bridge learning on tap|veth|fwln ports

Currently, if bridge receive an unknown dest mac (network bug/attack/..),
we are flooding packets to all bridge ports.

This can waste cpu time, even more with firewall enabled.
Also, if firewall is used with reject action, the src mac of RST
packet is the original unknown dest mac.
(This can block the server at Hetzner for example)

So, we can disable learning && unicast_flood on tap|veth|fwln port interface.
Then mac address need to be add statically in bridge fdb.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
src/PVE/Network.pm