Arg that's frustrating...why no NAT?
This commit is contained in:
parent
946f3597ef
commit
ce77837769
|
@ -29,7 +29,7 @@ in {
|
||||||
recursive-resolver = "${primary-ip} port 5353";
|
recursive-resolver = "${primary-ip} port 5353";
|
||||||
network = site.network;
|
network = site.network;
|
||||||
dhcp-dynamic-network = site.dynamic-network;
|
dhcp-dynamic-network = site.dynamic-network;
|
||||||
search-domains = [ domain-name "selby.ca" ];
|
search-domains = [ "selby.ca" ];
|
||||||
enable-reverse-mappings = true;
|
enable-reverse-mappings = true;
|
||||||
network-definition = config.fudo.networks."rus.selby.ca";
|
network-definition = config.fudo.networks."rus.selby.ca";
|
||||||
};
|
};
|
||||||
|
@ -42,7 +42,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
interfaces = {
|
interfaces = {
|
||||||
enp1s0.useDHCP = false;
|
# enp1s0.useDHCP = false;
|
||||||
enp2s0.useDHCP = false;
|
enp2s0.useDHCP = false;
|
||||||
enp3s0.useDHCP = false;
|
enp3s0.useDHCP = false;
|
||||||
enp4s0.useDHCP = false;
|
enp4s0.useDHCP = false;
|
||||||
|
|
|
@ -108,8 +108,9 @@ in {
|
||||||
networking = {
|
networking = {
|
||||||
hostName = config.instance.hostname;
|
hostName = config.instance.hostname;
|
||||||
nameservers = site.nameservers;
|
nameservers = site.nameservers;
|
||||||
defaultGateway = site.gateway-v4;
|
# This will cause a loop on the gateway itself
|
||||||
defaultGateway6 = site.gateway-v6;
|
#defaultGateway = site.gateway-v4;
|
||||||
|
#defaultGateway6 = site.gateway-v6;
|
||||||
|
|
||||||
# Necessary to ensure that Kerberos and Avahi both work. Kerberos needs
|
# Necessary to ensure that Kerberos and Avahi both work. Kerberos needs
|
||||||
# the fqdn of the host, whereas Avahi wants just the simple hostname.`
|
# the fqdn of the host, whereas Avahi wants just the simple hostname.`
|
||||||
|
|
|
@ -112,10 +112,9 @@ in {
|
||||||
option routers ${cfg.gateway};
|
option routers ${cfg.gateway};
|
||||||
option domain-name-servers ${concatStringsSep " " cfg.dns-servers};
|
option domain-name-servers ${concatStringsSep " " cfg.dns-servers};
|
||||||
option domain-name "${cfg.domain}";
|
option domain-name "${cfg.domain}";
|
||||||
option domain-search ${
|
option domain-search "${
|
||||||
join-lines
|
concatStringsSep " " ([ cfg.domain ] ++ cfg.search-domains)
|
||||||
(map (dom: ''"${dom}"'') ([ cfg.domain ] ++ cfg.search-domains))
|
}";
|
||||||
};
|
|
||||||
range ${ip.networkMinIp cfg.dhcp-dynamic-network} ${
|
range ${ip.networkMinIp cfg.dhcp-dynamic-network} ${
|
||||||
ip.networkMaxButOneIp cfg.dhcp-dynamic-network
|
ip.networkMaxButOneIp cfg.dhcp-dynamic-network
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue