[Nix-dev] nixos-container networking

Tomasz Czyż tomasz.czyz at gmail.com
Mon Mar 13 03:12:12 CET 2017


Hey,

could anyone using nixos-container (declarative style) share how you setup
networking?

I'm trying to setup few containers with private network and http proxy at
the front. Each container potentially could run application on port 80 and
I would like to expose them through proxy.

I tried to set this up with

privateNetwork=true;
hostAddress
localAddress

and I tried to also run nat on the host with (just to enable outbound
traffic)
internalInterfaces = ["ve-+"];
externalInterfaces = "eth0";

but no luck.
My next try will be creating bridge on the host and add containers to that
bridge. Is that how you do stuff or are better ways of doing container
networking?

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170313/0036f9ba/attachment.html>


More information about the nix-dev mailing list