Skip to content

Commit bf46221

Browse files
committed
incus-osd/nftables: Use oifname to allow non-existent interfaces
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
1 parent 251790f commit bf46221

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • incus-osd/internal/nftables

incus-osd/internal/nftables/nft.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func ApplyHwaddrFilters(ctx context.Context, networkCfg *api.SystemNetworkConfig
4848

4949
underlyingDevice := "_p" + strings.ToLower(strings.ReplaceAll(iface.Hwaddr, ":", ""))
5050

51-
_, err = subprocess.RunCommandContext(ctx, "nft", "add", "rule", "bridge", "incus-osd", "mac-filters", "oif", underlyingDevice, "ether", "saddr", "!=", iface.Hwaddr, "drop")
51+
_, err = subprocess.RunCommandContext(ctx, "nft", "add", "rule", "bridge", "incus-osd", "mac-filters", "oifname", underlyingDevice, "ether", "saddr", "!=", iface.Hwaddr, "drop")
5252
if err != nil {
5353
return err
5454
}

0 commit comments

Comments
 (0)