fix network problems with containers

This commit is contained in:
Ingolf Wagner 2020-06-08 00:18:44 +02:00
parent 1d8ba8619a
commit 6fd3b5f26e
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ in {
# give containers internet access
networking.nat.enable = true;
networking.nat.internalInterfaces = [ "ve-mattermost" ];
networking.nat.externalInterface = "eth0";
networking.nat.externalInterface = "enp2s0f1";
# don't let networkmanager manger container network
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];

View file

@ -190,7 +190,7 @@ in {
# give containers internet access
networking.nat.enable = true;
networking.nat.internalInterfaces = [ "ve-nextcloud" ];
networking.nat.externalInterface = "eth0";
networking.nat.externalInterface = "enp2s0f1";
# don't let networkmanager manger container network
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];

View file

@ -214,7 +214,7 @@ in {
# give containers internet access
networking.nat.enable = true;
networking.nat.internalInterfaces = [ "ve-torrent" ];
networking.nat.externalInterface = "eth0";
networking.nat.externalInterface = "enp2s0f1";
# open ports for logging
networking.firewall.interfaces."ve-torrent".allowedTCPPorts =