add support for setting up routing inside the netns

This commit is contained in:
Robin Appelman 2026-02-23 22:59:31 +01:00
commit 7588b5db00
18 changed files with 272 additions and 53 deletions

View file

@ -8,6 +8,7 @@ A declarative manager for Linux network namespaces.
- Hot reloading of configuration
- Port forwarding into or out of the namespace
- Moving network devices to the namespace
- Setting up routing inside the namespace
## Usage
@ -57,6 +58,11 @@ name = "test"
# move existing devices into the namespace
devices = ["somelink"]
# create a route inside the namespace
[[namespace.route]]
destination = "default" # either "default" or an ip range in CIDR notation
device = "somelink"
# You can define any number of port forwards to setup into the namespace
[[namespace.forward]]
# port, address or socket outside the namespace to listen on