containers / netavark

Container network stack
Apache License 2.0
541 stars 85 forks source link

Support for network host_ipv4 label #1100

Open Fexiven opened 1 month ago

Fexiven commented 1 month ago

Feature request description

Same as https://github.com/moby/moby/issues/30053 & https://github.com/moby/libnetwork/pull/2454

It should be possible to specify a host_ipv4 & host_ipv6 because currently the default route is used.

Suggest potential solution

Implement a way to let users specify either the interface or the IP address

Have you considered any alternatives?

The alternatives are custom ip routes, but having it built in would be way better

Additional context

No response

Luap99 commented 1 month ago

This would need to be added to netavark first so I move the issue there.

I am not against it but adding support means supporting this for iptables/nftables and firewalld (WIP) so I am unlikely to work on that, AFAIK you can already add custom routes via out vrf support.