Arg that's frustrating...why no NAT?

This commit is contained in:
Niten 2021-03-02 00:08:14 +00:00
parent 946f3597ef
commit ce77837769
3 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ in {
recursive-resolver = "${primary-ip} port 5353";
network = site.network;
dhcp-dynamic-network = site.dynamic-network;
search-domains = [ domain-name "selby.ca" ];
search-domains = [ "selby.ca" ];
enable-reverse-mappings = true;
network-definition = config.fudo.networks."rus.selby.ca";
};
@ -42,7 +42,7 @@ in {
};
interfaces = {
enp1s0.useDHCP = false;
# enp1s0.useDHCP = false;
enp2s0.useDHCP = false;
enp3s0.useDHCP = false;
enp4s0.useDHCP = false;

View File

@ -108,8 +108,9 @@ in {
networking = {
hostName = config.instance.hostname;
nameservers = site.nameservers;
defaultGateway = site.gateway-v4;
defaultGateway6 = site.gateway-v6;
# This will cause a loop on the gateway itself
#defaultGateway = site.gateway-v4;
#defaultGateway6 = site.gateway-v6;
# Necessary to ensure that Kerberos and Avahi both work. Kerberos needs
# the fqdn of the host, whereas Avahi wants just the simple hostname.`

View File

@ -112,10 +112,9 @@ in {
option routers ${cfg.gateway};
option domain-name-servers ${concatStringsSep " " cfg.dns-servers};
option domain-name "${cfg.domain}";
option domain-search ${
join-lines
(map (dom: ''"${dom}"'') ([ cfg.domain ] ++ cfg.search-domains))
};
option domain-search "${
concatStringsSep " " ([ cfg.domain ] ++ cfg.search-domains)
}";
range ${ip.networkMinIp cfg.dhcp-dynamic-network} ${
ip.networkMaxButOneIp cfg.dhcp-dynamic-network
};