From cc84c01fb040bc7d9d58bcd95186f629e86fc051 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 3 Dec 2023 11:13:23 +0900 Subject: [PATCH] Test --- nixos/hosts/osaka-vultr-01/xinetd.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/hosts/osaka-vultr-01/xinetd.nix b/nixos/hosts/osaka-vultr-01/xinetd.nix index 9f951d6e..9c8fadf9 100644 --- a/nixos/hosts/osaka-vultr-01/xinetd.nix +++ b/nixos/hosts/osaka-vultr-01/xinetd.nix @@ -21,6 +21,13 @@ 5280 # Jitsi ]; + networking.firewall.extraCommands = '' + iptables -t nat -A PREROUTING -p udp --dport 10000 -j DNAT --to-destination [Server_A_IP]:10000 + ''; + networking.firewall.extraStopCommands = '' + iptables -t nat -D PREROUTING -p udp --dport 10000 -j DNAT --to-destination [Server_A_IP]:10000 + ''; + services.xinetd = { enable = true; services = [