yggdrasil: add listener

This commit is contained in:
Ehmry - 2021-03-03 23:50:11 +01:00
parent d2262715da
commit 9264b271f2
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ let
yggAddress = "201:4561:bb58:4dac:5f6a:7b23:44f:a5ef";
yggPrefix = "301:4561:bb58:4dac"; # 301:4561:bb58:4dac::/64
# taken from the output of "yggdrasilctl getself".
port = 46823;
in {
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
@ -21,6 +22,7 @@ in {
networking = let host = hostRegistry.hosts.yggdrasil;
in {
hostName = "yggdrasil";
firewall.enable = false;
defaultGateway = "172.20.72.6";
defaultGateway6 = "2a02:8106:208:5281::b:0";
nameservers = [ "172.20.73.8" ];
@ -50,6 +52,9 @@ in {
enable = true;
persistentKeys = true;
config = {
Listen = [
"tcp://[::]:${toString port}"
];
Peers = [
# deutschland
"tcp://45.11.19.26:5001"