nixpkgs/nixos/modules
Eelco Dolstra 895bcdd1cb Add support for running a container with a private network interface
For example, the following sets up a container named ‘foo’.  The
container will have a single network interface eth0, with IP address
10.231.136.2.  The host will have an interface c-foo with IP address
10.231.136.1.

  systemd.containers.foo =
    { privateNetwork = true;
      hostAddress = "10.231.136.1";
      localAddress = "10.231.136.2";
      config =
        { services.openssh.enable = true; };
    };

With ‘privateNetwork = true’, the container has the CAP_NET_ADMIN
capability, allowing it to do arbitrary network configuration, such as
setting up firewall rules.  This is secure because it cannot touch the
interfaces of the host.

The helper program ‘run-in-netns’ is needed at the moment because ‘ip
netns exec’ doesn't quite do the right thing (it remounts /sys without
bind-mounting the original /sys/fs/cgroups).
2014-03-18 10:49:25 +01:00
..
config Merge pull request #1767 from the-kenny/fix-consoleKeyMap-type 2014-03-08 18:04:55 +01:00
hardware Upgrade bumblebee and add nixos module 2014-02-09 15:09:41 +01:00
installer typo: occured -> occurred 2014-03-07 19:39:55 +01:00
misc notbit: Add systemd service for a system daemon 2014-03-15 04:36:15 -05:00
profiles remove references to isSystemUser and fix eval of tested job 2014-02-08 21:10:00 +01:00
programs Merge branch 'zsh' of git://github.com/ttuegel/nixpkgs 2014-03-15 13:11:38 -04:00
security nixos: add Duo Security module 2014-03-16 07:11:50 -05:00
services Add support for running a container with a private network interface 2014-03-18 10:49:25 +01:00
system Add an option to reload rather than restart changed units 2014-03-17 15:02:53 +01:00
tasks nixos: Add ZFS auto-snapshotting module 2014-03-15 01:56:42 +01:00
testing Rename linuxManualConfig to buildLinux 2014-01-21 20:05:55 -05:00
virtualisation Add support for running a container with a private network interface 2014-03-18 10:49:25 +01:00
module-list.nix Merge pull request #1775 from thoughtpolice/duo_unix 2014-03-16 23:06:01 +01:00
rename.nix move windowManager.xbmc to desktopManager.xbmc 2014-03-12 09:20:59 +01:00