Skip to content

Add option to disable entry in main routing table if host_table is set for routed NIC #1559

@ibot3

Description

@ibot3

For routed NICs, the host_table parameter can be specified to create a route in the specified routing table.
However, the same route is always installed in the main routing table too:

// Apply host-side static routes to main routing table.
r := ip.Route{
DevName: saveData["host_name"],
Route: fmt.Sprintf("%s/%d", addrStr, subnetSize),
Table: "main",
Family: ipFamilyArg,
}

It would be great if this behavior could be changed by another config option so that the route is only present in the specified routing table.

Our scenario:
We want to have VMs in different VRFs on the incus host.
But for routed NICs to work, ip_forwarding must be enabled on the host.
This causes that from the main VRF, all VMs with routed NICs can be reached, what we don't want, because they should only be reachable within their VRF.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIChanges to the REST APIDocumentationDocumentation needs updatingEasyGood for new contributors

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions