From aaa6a6f09bff694b6e321b51e92142239b52c320 Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Tue, 1 Dec 2026 00:14:15 +0100 Subject: [PATCH] thegeneralist(plex): clean up stale 32401 REDIRECT rule on reload --- hosts/thegeneralist/plex/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/thegeneralist/plex/default.nix b/hosts/thegeneralist/plex/default.nix index 65fcea1..3f1d777 100644 --- a/hosts/thegeneralist/plex/default.nix +++ b/hosts/thegeneralist/plex/default.nix @@ -97,6 +97,7 @@ in # sees 127.0.0.1 (Loopback) instead of the client's 100.64.0.0/10 Tailscale IP. networking.firewall.extraCommands = '' iptables -A nixos-fw -s 192.168.2.0/24 -p tcp --dport 32400 -j nixos-fw-accept + iptables -t nat -D PREROUTING -i tailscale0 -p tcp --dport 32400 -j REDIRECT --to-ports 32401 2>/dev/null || true iptables -t nat -D PREROUTING -i tailscale0 -p tcp --dport 32400 -j REDIRECT --to-ports 32499 2>/dev/null || true iptables -t nat -D PREROUTING -i tailscale0 -p tcp --dport 32400 -j DNAT --to-destination 100.108.125.63:32499 2>/dev/null || true iptables -t nat -A PREROUTING -i tailscale0 -p tcp --dport 32400 -j DNAT --to-destination 100.108.125.63:32499