mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-22 23:39:02 +08:00
devices.nas: add nat
This commit is contained in:
parent
f294f7e11b
commit
a39966adab
@ -73,5 +73,12 @@ inputs:
|
||||
packages.packageSet = "desktop-extra";
|
||||
virtualization = { docker.enable = true; kvmHost = { enable = true; gui = true; }; };
|
||||
};
|
||||
networking.nat =
|
||||
{
|
||||
enable = true;
|
||||
internalInterfaces = [ "enp3s0" ];
|
||||
externalInterface = "virbr0";
|
||||
forwardPorts = [{ sourcePort = 515; proto = "tcp"; destination = "192.168.122.166:515"; }];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user