forgejo: also reroute ssh traffic for ipv6
All checks were successful
Flake checks / Check (pull_request) Successful in 8m35s
All checks were successful
Flake checks / Check (pull_request) Successful in 8m35s
This commit is contained in:
parent
76ca43142a
commit
cf37752b95
|
@ -58,6 +58,7 @@
|
||||||
networking.firewall.interfaces.enp35s0.allowedTCPPorts = [ 2223 ];
|
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
|
||||||
|
ip6tables -t nat -i enp35s0 -I PREROUTING -p tcp --dport 22 -j REDIRECT --to-ports 2223
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
|
|
Loading…
Reference in a new issue