nixpkgs/nixos/modules/services/networking
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
..
ircd-hybrid
ssh
amuled.nix
avahi-daemon.nix
bind.nix
bitlbee.nix
chrony.nix
cntlm.nix
connman.nix
ddclient.nix
dhcpcd.nix Add support for running a container with a private network interface 2014-03-18 10:49:25 +01:00
dhcpd.nix
dnsmasq.nix
ejabberd.nix
firewall.nix firewall: Allow setting rate limits for pings 2014-03-14 14:55:30 -04:00
flashpolicyd.nix
freenet.nix
git-daemon.nix git-daemon service: fix typo in option (close #1659) 2014-02-01 11:56:56 +01:00
gnunet.nix
gogoclient.nix
gvpe.nix
haproxy.nix
hostapd.nix
ifplugd.nix
iodined.nix
kippo.nix UID/GID fix for kippo 2014-03-12 03:32:56 -04:00
minidlna.nix
nat.nix
networkmanager.nix networkmanager module: No need to start ModemManager explicitly, done by NM 2014-02-13 18:05:04 +01:00
notbit.nix notbit: Add systemd service for a system daemon 2014-03-15 04:36:15 -05:00
ntopng.nix
ntpd.nix Allow ntpq locally 2014-03-06 11:54:02 +01:00
oidentd.nix
openfire.nix
openvpn.nix
prayer.nix
privoxy.nix
quassel.nix
radvd.nix
rdnssd.nix
rpcbind.nix
sabnzbd.nix
searx.nix searx: refactor a bit 2014-03-09 18:57:17 +01:00
supybot.nix
tcpcrypt.nix
tftpd.nix
unbound.nix
vsftpd.nix Add an option to change vsftpd anonymos write umask. 2014-02-11 01:34:19 +04:00
wakeonlan.nix
websockify.nix
wicd.nix
wpa_supplicant.nix
xinetd.nix