From cf37752b95dbfdb8b7607c8ce6e9c508666d9a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Fri, 5 Apr 2024 20:55:00 +0200 Subject: [PATCH] forgejo: also reroute ssh traffic for ipv6 --- hosts/nachtigall/apps/forgejo.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/nachtigall/apps/forgejo.nix b/hosts/nachtigall/apps/forgejo.nix index f98e344..bbc73ce 100644 --- a/hosts/nachtigall/apps/forgejo.nix +++ b/hosts/nachtigall/apps/forgejo.nix @@ -58,6 +58,7 @@ networking.firewall.interfaces.enp35s0.allowedTCPPorts = [ 2223 ]; networking.firewall.extraCommands = '' iptables -t nat -i enp35s0 -I PREROUTING -p tcp --dport 22 -j REDIRECT --to-ports 2223 + ip6tables -t nat -i enp35s0 -I PREROUTING -p tcp --dport 22 -j REDIRECT --to-ports 2223 ''; services.forgejo = {