forgejo: also reroute ssh traffic for ipv6

pull/145/head
Benjamin Yule Bädorf 2024-04-05 20:55:00 +02:00 committed by b12f
parent afca75441c
commit 316ba9ef53
Signed by: pub.solar gitea
GPG Key ID: F0332B04B7054873
1 changed files with 1 additions and 0 deletions

View File

@ -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 = {