From 3e268f4b22f403e3920ba562e61f1d46036a35b6 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 10 Sep 2026 12:46:29 -0500 Subject: [PATCH] add forwards for valheim --- hosts/nixos/vaniville/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/nixos/vaniville/configuration.nix b/hosts/nixos/vaniville/configuration.nix index c0ee0c8..a62287b 100644 --- a/hosts/nixos/vaniville/configuration.nix +++ b/hosts/nixos/vaniville/configuration.nix @@ -146,12 +146,16 @@ in { iptables -t nat -A PREROUTING -i eth0 -p udp --dport 25777 -j DNAT --to-destination ${lumiose_ip}:25777 # recpro mc iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25579 -j DNAT --to-destination ${snowbelle_ip}:25579 # craftoria mc iptables -t nat -A PREROUTING -i eth0 -p udp --dport 25580 -j DNAT --to-destination ${snowbelle_ip}:25580 # craftoria mc voice chat + iptables -t nat -A PREROUTING -i eth0 -p udp --dport 2456 -j DNAT --to-destination ${lumiose_ip}:2456 # valheim server + iptables -t nat -A PREROUTING -i eth0 -p udp --dport 2457 -j DNAT --to-destination ${lumiose_ip}:2457 # valheim server # SNAT: ensure replies go back through VPS tailscale IP iptables -t nat -A POSTROUTING -o tailscale0 -p tcp --dport 25777 -d ${lumiose_ip}/32 -j SNAT --to-source ${vpsip4} # recpro mc iptables -t nat -A POSTROUTING -o tailscale0 -p udp --dport 25777 -d ${lumiose_ip}/32 -j SNAT --to-source ${vpsip4} # recpro mc iptables -t nat -A POSTROUTING -o tailscale0 -p tcp --dport 25579 -d ${snowbelle_ip}/32 -j SNAT --to-source ${vpsip4} # craftoria mc iptables -t nat -A POSTROUTING -o tailscale0 -p udp --dport 25580 -d ${snowbelle_ip}/32 -j SNAT --to-source ${vpsip4} # craftoria mc voicechat + iptables -t nat -A POSTROUTING -o tailscale0 -p udp --dport 2456 -d ${snowbelle_ip}/32 -j SNAT --to-source ${vpsip4} # valheim server + iptables -t nat -A POSTROUTING -o tailscale0 -p udp --dport 2457 -d ${snowbelle_ip}/32 -j SNAT --to-source ${vpsip4} # valheim server ''; }; };