try again with bridge
This commit is contained in:
@@ -100,7 +100,9 @@ in
|
|||||||
containers.gitea = {
|
containers.gitea = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ephemeral = true;
|
ephemeral = true;
|
||||||
macvlans = [ "vserver" ];
|
# macvlans = [ "vserver" ];
|
||||||
|
hostBridge = "server";
|
||||||
|
localAddress = "10.42.97.1/24";
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
"/var/lib/gitea" = {
|
"/var/lib/gitea" = {
|
||||||
hostPath = "/var/lib/gitea/";
|
hostPath = "/var/lib/gitea/";
|
||||||
@@ -116,7 +118,7 @@ in
|
|||||||
config = { lib, config, pkgs, ... }: {
|
config = { lib, config, pkgs, ... }: {
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "fw";
|
hostName = "fw";
|
||||||
interfaces.mv-vserver = {
|
interfaces.eth0 = {
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
|
ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,9 +47,14 @@
|
|||||||
interface = "enp5s0";
|
interface = "enp5s0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
macvlans.server = {
|
# macvlans.server = {
|
||||||
interface = "vserver";
|
# interface = "vserver";
|
||||||
mode = "bridge";
|
# mode = "bridge";
|
||||||
|
# };
|
||||||
|
bridges = {
|
||||||
|
server = {
|
||||||
|
interfaces = [ "vserver" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
interfaces = {
|
interfaces = {
|
||||||
|
|||||||
Reference in New Issue
Block a user