mirror of
https://github.com/thegeneralist01/config.git
synced 2026-12-04 18:56:56 +01:00
thegeneralist(plex): clean up stale 32401 REDIRECT rule on reload
This commit is contained in:
parent
78393fd2be
commit
aaa6a6f09b
1 changed files with 1 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ in
|
||||||
# sees 127.0.0.1 (Loopback) instead of the client's 100.64.0.0/10 Tailscale IP.
|
# sees 127.0.0.1 (Loopback) instead of the client's 100.64.0.0/10 Tailscale IP.
|
||||||
networking.firewall.extraCommands = ''
|
networking.firewall.extraCommands = ''
|
||||||
iptables -A nixos-fw -s 192.168.2.0/24 -p tcp --dport 32400 -j nixos-fw-accept
|
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 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 -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
|
iptables -t nat -A PREROUTING -i tailscale0 -p tcp --dport 32400 -j DNAT --to-destination 100.108.125.63:32499
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue