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