Skip to content

Commit 2a129e1

Browse files
committed
incus-osd: Call nftables MAC filtering
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
1 parent a74d361 commit 2a129e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

incus-osd/cmd/incus-osd/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"github.com/lxc/incus-os/incus-osd/internal/applications"
2222
"github.com/lxc/incus-os/incus-osd/internal/install"
2323
"github.com/lxc/incus-os/incus-osd/internal/keyring"
24+
"github.com/lxc/incus-os/incus-osd/internal/nftables"
2425
"github.com/lxc/incus-os/incus-osd/internal/providers"
2526
"github.com/lxc/incus-os/incus-osd/internal/recovery"
2627
"github.com/lxc/incus-os/incus-osd/internal/rest"
@@ -359,6 +360,11 @@ func startup(ctx context.Context, s *state.State, t *tui.TUI) error { //nolint:r
359360
// Perform network configuration.
360361
slog.InfoContext(ctx, "Bringing up the network")
361362

363+
err = nftables.ApplyHwaddrFilters(ctx, s.System.Network.Config)
364+
if err != nil {
365+
return err
366+
}
367+
362368
err = systemd.ApplyNetworkConfiguration(ctx, s, s.System.Network.Config, 30*time.Second, s.OS.SuccessfulBoot, providers.Refresh, delayInitialUpdateCheck)
363369
if err != nil {
364370
return err

0 commit comments

Comments
 (0)