freifunk: add yggdrasil port-forwarding

This commit is contained in:
Astro 2021-03-05 00:43:49 +01:00
parent 73cc1e8fb9
commit f4b4dbb7a0
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{ secrets }:
{ config, pkgs, lib, modulesPath, ... }:
{ config, pkgs, lib, modulesPath, hostRegistry, ... }:
let
coreAddress = "172.20.72.40";
@ -47,6 +47,13 @@ in {
\! --source 10.200.0.0/15 -o ${meshInterface} -j SNAT --to 10.200.${ddmeshAddrPart}
set -e
'';
forwardPorts = [ {
# Yggdrasil
destination = "${hostRegistry.hosts.yggdrasil.ip4}:46823";
proto = "tcp";
sourcePort = 46823;
} ];
};
# Configure rt_table name
networking.iproute2 = {