nachtigall: forgejo: update firewall settings
All checks were successful
Flake checks / Check (pull_request) Successful in 8m11s

This commit is contained in:
Hendrik Sokolowski 2024-04-05 18:39:43 +02:00
parent 4380c3b0ab
commit b6b8d69852
Signed by: hensoko
GPG key ID: 5C36A01B80BCCC59

View file

@ -42,7 +42,7 @@
users.groups.gitea = {};
# Expose SSH port only for forgejo SSH
networking.firewall.interfaces.enp35s0.allowedTCPPorts = [ 22 ];
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
'';