From 36508419c042070ef511f5e7a0a5daa75562dfc6 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 16 Mar 2024 11:32:07 +0900 Subject: [PATCH] test --- nixos/hosts/osaka-linode-01/firewall.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/osaka-linode-01/firewall.nix b/nixos/hosts/osaka-linode-01/firewall.nix index 4965a801..2f7c40cb 100644 --- a/nixos/hosts/osaka-linode-01/firewall.nix +++ b/nixos/hosts/osaka-linode-01/firewall.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: { +{ ... }: { networking = { firewall = { enable = true; @@ -39,6 +39,7 @@ iifname "enp0s4" tcp dport 42420 dnat to 10.100.0.2:42420; # Vintage Story iifname "enp0s4" tcp dport 25565 dnat to 10.100.0.2:25565; # Minecraft iifname "enp0s4" tcp dport 4443 dnat to 10.100.0.2:4443; # Jitsi + iifname "enp0s4" udp dport 10000 dnat to 10.100.0.2:10000; # Jitsi } } ''; @@ -60,6 +61,7 @@ { sourcePort = 42420; proto = "tcp"; destination = "10.100.0.2:42420"; } # Vintage Story { sourcePort = 25565; proto = "tcp"; destination = "10.100.0.2:25565"; } # Minecraft { sourcePort = 4443; proto = "tcp"; destination = "10.100.0.2:4443"; } # Jitsi + { sourcePort = 10000; proto = "udp"; destination = "10.100.0.2:10000"; } # Jitsi ]; }; };