Skip to content

main/openrc: add netns support

Based on the vrf patch this MR adds support to run services in netns namespaces. It is even possible to stack both options and run services in a VRF inside a netns namespace.

In combination with ifstate 1.9.0 (!51613 (merged)) this patch makes it easy to run services in netns namespaces on Alpine Linux. 💪


To run dnsmasq inside a netns tenant1 you need:

  • add a sensible config in /etc/dnsmasq.tenant1.conf
  • add and enable an multi-services instance of dnsmasq
  • enable netns support in /etc/conf.d/dnsmasq.tenant1:
# enable netns support

# the rc script adds a bridge for multi-services, disable it

Merge request reports