Network config

This commit is contained in:
Alex 2021-11-05 21:44:54 +01:00
parent 681a76e76a
commit 8637b4729a
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1
4 changed files with 42 additions and 1 deletions

View file

@ -38,7 +38,7 @@ in
# Route internet traffic via USB modem (=phone) on other computer # Route internet traffic via USB modem (=phone) on other computer
networking.nameservers = [ "9.9.9.9" ]; networking.nameservers = [ "9.9.9.9" ];
networking.defaultGateway = { networking.defaultGateway = {
address = "192.168.1.14"; address = "192.168.1.254";
interface = "eno1"; interface = "eno1";
}; };
@ -131,12 +131,33 @@ in
# List services that you want to enable: # List services that you want to enable:
# Enable Yggdrasil networking
services.yggdrasil.enable = true;
services.yggdrasil.persistentKeys = true;
services.yggdrasil.config = {
Listen = [
"tcp://0.0.0.0:54312"
];
Peers = [
"tcp://37.187.118.206:53102"
"tcp://192.168.1.21:54312"
"tcp://192.168.1.22:54312"
"tcp://192.168.1.23:54312"
];
MulticastInterfaces = [
"eno1"
];
};
# Enable network time # Enable network time
services.ntp.enable = true; services.ntp.enable = true;
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
# Enable netdata monitoring
services.netdata.enable = true;
# Enable Hashicorp Consul & Nomad # Enable Hashicorp Consul & Nomad
services.consul.enable = true; services.consul.enable = true;
services.consul.extraConfig = services.consul.extraConfig =
@ -193,6 +214,8 @@ in
3900 3901 # Garage (internal RPC traffic) 3900 3901 # Garage (internal RPC traffic)
4646 4647 4648 # Nomad 4646 4647 4648 # Nomad
8500 8300 8301 8302 # Consul 8500 8300 8301 8302 # Consul
19999 # Netdata
54312 # Yggdrasil
]; ];
networking.firewall.allowedUDPPorts = [ networking.firewall.allowedUDPPorts = [
4648 # Nomad 4648 # Nomad

View file

@ -12,4 +12,10 @@
prefixLength = 24; prefixLength = 24;
} }
]; ];
# networking.interfaces.eno1.ipv6.addresses = [
# {
# address = "2a01:e0a:c:a720::22";
# prefixLength = 64;
# }
# ];
} }

View file

@ -12,4 +12,10 @@
prefixLength = 24; prefixLength = 24;
} }
]; ];
# networking.interfaces.eno1.ipv6.addresses = [
# {
# address = "2a01:e0a:c:a720::21";
# prefixLength = 64;
# }
# ];
} }

View file

@ -12,6 +12,12 @@
prefixLength = 24; prefixLength = 24;
} }
]; ];
# networking.interfaces.eno1.ipv6.addresses = [
# {
# address = "2a01:e0a:c:a720::23";
# prefixLength = 64;
# }
# ];
# OR use USB modem plugged in here # OR use USB modem plugged in here
#networking.interfaces.enp0s20u1.useDHCP = true; #networking.interfaces.enp0s20u1.useDHCP = true;