895bcdd1cb
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). |
||
---|---|---|
.. | ||
ircd-hybrid | ||
ssh | ||
amuled.nix | ||
avahi-daemon.nix | ||
bind.nix | ||
bitlbee.nix | ||
chrony.nix | ||
cntlm.nix | ||
connman.nix | ||
ddclient.nix | ||
dhcpcd.nix | ||
dhcpd.nix | ||
dnsmasq.nix | ||
ejabberd.nix | ||
firewall.nix | ||
flashpolicyd.nix | ||
freenet.nix | ||
git-daemon.nix | ||
gnunet.nix | ||
gogoclient.nix | ||
gvpe.nix | ||
haproxy.nix | ||
hostapd.nix | ||
ifplugd.nix | ||
iodined.nix | ||
kippo.nix | ||
minidlna.nix | ||
nat.nix | ||
networkmanager.nix | ||
notbit.nix | ||
ntopng.nix | ||
ntpd.nix | ||
oidentd.nix | ||
openfire.nix | ||
openvpn.nix | ||
prayer.nix | ||
privoxy.nix | ||
quassel.nix | ||
radvd.nix | ||
rdnssd.nix | ||
rpcbind.nix | ||
sabnzbd.nix | ||
searx.nix | ||
supybot.nix | ||
tcpcrypt.nix | ||
tftpd.nix | ||
unbound.nix | ||
vsftpd.nix | ||
wakeonlan.nix | ||
websockify.nix | ||
wicd.nix | ||
wpa_supplicant.nix | ||
xinetd.nix |