nachtigall: forgejo: update firewall settings #137

Merged
b12f merged 1 commit from fix/git-forgejo-open-service-port-in-firewall into main 2024-04-05 16:51:36 +00:00
Showing only changes of commit b6b8d69852 - Show all commits

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
'';