From 9e5fcb3856c5016138d663a67a40f0d1cc0714a3 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 3 Dec 2023 12:44:38 +0900 Subject: [PATCH] Test --- nixos/hosts/osaka-vultr-01/xinetd.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/hosts/osaka-vultr-01/xinetd.nix b/nixos/hosts/osaka-vultr-01/xinetd.nix index 9c38ff3b..146ddbe2 100644 --- a/nixos/hosts/osaka-vultr-01/xinetd.nix +++ b/nixos/hosts/osaka-vultr-01/xinetd.nix @@ -20,10 +20,10 @@ 5347 # Jitsi 5280 # Jitsi ]; - # 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 - # ''; + networking.firewall.extraCommands = '' + ${pkgs.iptables}/bin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 10.100.0.2:80 + ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -p tcp -d 10.100.0.2 --dport 80 -j SNAT --to-source 10.100.0.1 + ''; services.xinetd = { enable = false;