more readme

This commit is contained in:
Robin Appelman 2025-11-01 17:09:59 +01:00
commit ca5b60a9b9

View file

@ -7,3 +7,35 @@ A declarative manager for Linux network namespaces.
- Fully declarative configuration - Fully declarative configuration
- Hot reloading of configuration - Hot reloading of configuration
- Port forwarding into the namespace - Port forwarding into the namespace
## Usage
### Daemon
```shell
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
```shell
netnsd up [--config <config.toml>]
```
Applying the configured namespace and exit.
### Down
```shell
netnsd down
```
Remove all namespaces created by netnsd and exit.