netns-isolation: netns architecture

- Adds network namespace instantiation and routing architecture.
- netns-isolation disabled by default. Can be enabled with
  configuration.nix FIXME.
- Uses mkMerge to toggle certain options for non netns and netns
  systems.
- Adds security wrapper for netns-exec which allows operator to exec
  with cap_sys_admin
- User can select the 169.254.N.0/24 addressblock netns's are created in.
- nix-bitcoin-services IpAddressAllow is amended with link-local
  addresses
This commit is contained in:
nixbitcoin
2020-05-29 10:53:35 +00:00
parent 4a7199a3da
commit e5e07b91f7
5 changed files with 181 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
./hardware-wallets.nix
./lnd.nix
./secrets/secrets.nix
./netns-isolation.nix
];
disabledModules = [ "services/networking/bitcoind.nix" ];