freifunk: add yggdrasil port-forwarding
This commit is contained in:
parent
73cc1e8fb9
commit
f4b4dbb7a0
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue