From e5caa1245283b65c3719d1b6e85bce833a7ff63e Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 3 Dec 2023 12:05:16 +0900 Subject: [PATCH] test --- nixos/hosts/osaka-vultr-01/xinetd.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/hosts/osaka-vultr-01/xinetd.nix b/nixos/hosts/osaka-vultr-01/xinetd.nix index 61acd9a9..619873ae 100644 --- a/nixos/hosts/osaka-vultr-01/xinetd.nix +++ b/nixos/hosts/osaka-vultr-01/xinetd.nix @@ -20,9 +20,9 @@ 5347 # Jitsi 5280 # Jitsi ]; - networking.firewall.extraCommands = '' - ${pkgs.iptables}/bin/iptables -t nat -A PREROUTING -p udp --dport 10000 -j DNAT --to-destination 10.100.0.2:10000 - ${pkgs.iptables}/bin/iptables -A FORWARD -p udp -d 10.100.0.2 --dport 10000 -j ACCEPT + networking.firewall.extraCommands = '' + ${pkgs.iptables}/bin/iptables -t nat -A PREROUTING -d 64.176.54.57 -j DNAT --to-destination 10.100.0.2 + ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.2 -j SNAT --to-source 64.176.54.57 ''; services.xinetd = {