From f1fd6ee270e3aae65bc99e302b00eadc875f526d Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Sat, 18 May 2024 15:34:43 +0100 Subject: [PATCH] gitea: fix ips in iptables rules --- modules/services/gitea/gitea.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/gitea/gitea.nix b/modules/services/gitea/gitea.nix index 68f895e..c468972 100644 --- a/modules/services/gitea/gitea.nix +++ b/modules/services/gitea/gitea.nix @@ -106,8 +106,8 @@ in ip6tables -A PREROUTING -t nat -i eth0 -p tcp --dport 22 -j REDIRECT --to-port ${builtins.toString cfg.sshPort} # proxy locally originating outgoing packets - iptables -A OUTPUT -d 95.217.229.104 -t nat -p tcp --dport 22 -j REDIRECT --to-port ${builtins.toString cfg.sshPort} - ip6tables -A OUTPUT -d 2a01:4f9:4b:3953::2 -t nat -p tcp --dport 22 -j REDIRECT --to-port ${builtins.toString cfg.sshPort} + iptables -A OUTPUT -d 138.201.252.214 -t nat -p tcp --dport 22 -j REDIRECT --to-port ${builtins.toString cfg.sshPort} + ip6tables -A OUTPUT -d 2a01:4f8:173:23d2::2 -t nat -p tcp --dport 22 -j REDIRECT --to-port ${builtins.toString cfg.sshPort} ''; }; }