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