diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-01-21 10:18:10 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-01-21 10:25:27 +0200 |
commit | e4ce8f59f5f1a31961b29ae700829b8372053f77 (patch) | |
tree | 95c27c03af4b78efd98cd31f7f0edef76ff08462 /target/linux/malta/le64/config-default | |
parent | 0d28e5d6440d2a37841a207f943e6e5a23172883 (diff) | |
download | upstream-e4ce8f59f5f1a31961b29ae700829b8372053f77.tar.gz upstream-e4ce8f59f5f1a31961b29ae700829b8372053f77.tar.bz2 upstream-e4ce8f59f5f1a31961b29ae700829b8372053f77.zip |
netifd: add basic support for jail network namespaces
Prepare netifd for handling procd service jails having their own
network namespace.
Intefaces having the jail attribute will only be brought up inside the
jail's network namespace by procd calling the newly introduced ubus
method 'netns_updown'.
Currently proto 'static' is supported and configuration changes are
not yet being handled (ie. you'll have to restart the jailed service
for changes to take effect).
Example /etc/config/network snippet:
config device 'veth0'
option type 'veth'
option name 'vhost0'
option peer_name 'virt0'
config interface 'virt'
option type 'bridge'
list ifname 'vhost0'
option proto 'static'
option ipaddr '10.0.0.1'
option netmask '255.255.255.0'
config interface 'virt0'
option ifname 'virt0'
option proto 'static'
option ipaddr '10.0.0.2'
option netmask '255.255.255.0'
option gateway '10.0.0.1'
option dns '10.0.0.1'
option jail 'transmission'
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/malta/le64/config-default')
0 files changed, 0 insertions, 0 deletions