🏗️ migrate to akkoma

This commit is contained in:
2023-03-18 23:40:44 -04:00
parent 07130a5a41
commit 0e31565644
8 changed files with 185 additions and 63 deletions

View File

@ -9,6 +9,6 @@ in
networking.firewall.extraCommands = ''
IPTABLES=${pkgs.iptables}/bin/iptables
"$IPTABLES" -t nat -A PREROUTING -p tcp --dport 25565 -j DNAT --to-destination ${dest_ip}:25565
"$IPTABLES" -t nat -A POSTROUTING -j MASQUERADE
"$IPTABLES" -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE
'';
}