test
This commit is contained in:
parent
e0c5b2af59
commit
e479733676
1 changed files with 42 additions and 37 deletions
|
@ -21,41 +21,46 @@
|
||||||
# 5280 # Jitsi
|
# 5280 # Jitsi
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.nat.forwardPorts = [
|
networking.nat = {
|
||||||
{ # Headscale DERP UDP
|
enable = true;
|
||||||
destination = "10.100.0.2:3478";
|
internalInterfaces = [ "enp0s4" ];
|
||||||
proto = "udp";
|
externalInterface = "wireguard0"
|
||||||
sourcePort = 3478;
|
forwardPorts = [
|
||||||
}
|
{ # Headscale DERP UDP
|
||||||
{ # Jitsi
|
destination = "10.100.0.2:3478";
|
||||||
destination = "10.100.0.2:10000";
|
proto = "udp";
|
||||||
proto = "udp";
|
sourcePort = 3478;
|
||||||
sourcePort = 10000;
|
}
|
||||||
}
|
{ # Jitsi
|
||||||
{ # HTTP
|
destination = "10.100.0.2:10000";
|
||||||
destination = "10.100.0.2:80";
|
proto = "udp";
|
||||||
proto = "tcp";
|
sourcePort = 10000;
|
||||||
sourcePort = 80;
|
}
|
||||||
}
|
{ # HTTP
|
||||||
{ # HTTPS
|
destination = "10.100.0.2:80";
|
||||||
destination = "10.100.0.2:443";
|
proto = "tcp";
|
||||||
proto = "tcp";
|
sourcePort = 80;
|
||||||
sourcePort = 443;
|
}
|
||||||
}
|
{ # HTTPS
|
||||||
{ # Vintage Story
|
destination = "10.100.0.2:443";
|
||||||
destination = "10.100.0.2:42420";
|
proto = "tcp";
|
||||||
proto = "tcp";
|
sourcePort = 443;
|
||||||
sourcePort = 42420;
|
}
|
||||||
}
|
{ # Vintage Story
|
||||||
{ # Minecraft
|
destination = "10.100.0.2:42420";
|
||||||
destination = "10.100.0.2:25565";
|
proto = "tcp";
|
||||||
proto = "tcp";
|
sourcePort = 42420;
|
||||||
sourcePort = 25565;
|
}
|
||||||
}
|
{ # Minecraft
|
||||||
{ # Headscale DERP TCP
|
destination = "10.100.0.2:25565";
|
||||||
destination = "10.100.0.2:1443";
|
proto = "tcp";
|
||||||
proto = "tcp";
|
sourcePort = 25565;
|
||||||
sourcePort = 1443;
|
}
|
||||||
}
|
{ # Headscale DERP TCP
|
||||||
];
|
destination = "10.100.0.2:1443";
|
||||||
|
proto = "tcp";
|
||||||
|
sourcePort = 1443;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue