mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 09:04:07 +02:00
add support for setting up routing inside the netns
This commit is contained in:
parent
35c8f5cc6c
commit
7588b5db00
18 changed files with 272 additions and 53 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue