Add VM for NAT64
This commit is contained in:
parent
9d629c4656
commit
081084648f
40
hosts/vm-infra/configuration.nix
Normal file
40
hosts/vm-infra/configuration.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
# State version
|
||||
system.stateVersion = "25.05";
|
||||
|
||||
# Machine hostname
|
||||
networking.hostName = "vm-infra";
|
||||
|
||||
# Enabled modules
|
||||
modules = {
|
||||
profiles.vm.enable = true;
|
||||
};
|
||||
|
||||
# Setup Tayga NAT64
|
||||
services.tayga = {
|
||||
enable = true;
|
||||
ipv4 = {
|
||||
address = "10.64.0.0";
|
||||
router = {
|
||||
address = "10.64.0.1";
|
||||
};
|
||||
pool = {
|
||||
address = "10.64.0.1";
|
||||
prefixLength = 16;
|
||||
};
|
||||
};
|
||||
ipv6 = {
|
||||
router = {
|
||||
address = "fc00:6464::1";
|
||||
};
|
||||
pool = {
|
||||
address = "fc00:6464::";
|
||||
prefixLength = 96;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user