mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 09:04:07 +02:00
A declarative manager for Linux network namespaces.
- Rust 93.3%
- Nix 6.7%
| .forgejo/workflows | ||
| nix | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
netnsd
A declarative manager for Linux network namespaces.
Features
- Fully declarative configuration
- Hot reloading of configuration
- Port forwarding into the namespace
Usage
Daemon
netnsd daemon [--config <config.toml>]
Start the netnsd daemon, applying the configured namespace configuration and running any proxies.
You can tell the daemon to reload the configuration with pkill -sighup netnsd.
Note that, to minimize interruption of anything using the namespaces, stopping the daemon will not remove the created namespaces.
Up
netnsd up [--config <config.toml>]
Applying the configured namespace and exit.
Down
netnsd down
Remove all namespaces created by netnsd and exit.