Compare commits
2 commits
4380c3b0ab
...
9191729f5c
Author | SHA1 | Date | |
---|---|---|---|
9191729f5c | |||
b6b8d69852 |
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@
|
||||||
users.groups.gitea = {};
|
users.groups.gitea = {};
|
||||||
|
|
||||||
# Expose SSH port only for forgejo SSH
|
# Expose SSH port only for forgejo SSH
|
||||||
networking.firewall.interfaces.enp35s0.allowedTCPPorts = [ 22 ];
|
networking.firewall.interfaces.enp35s0.allowedTCPPorts = [ 2223 ];
|
||||||
networking.firewall.extraCommands = ''
|
networking.firewall.extraCommands = ''
|
||||||
iptables -t nat -i enp35s0 -I PREROUTING -p tcp --dport 22 -j REDIRECT --to-ports 2223
|
iptables -t nat -i enp35s0 -I PREROUTING -p tcp --dport 22 -j REDIRECT --to-ports 2223
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Reference in a new issue