From 0113af5cfdbfd1cd5644a3e0bffe21e39c4a0f77 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 6 Dec 2023 13:30:29 +0900 Subject: [PATCH] Test --- nixos/hosts/framework-server/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/hosts/framework-server/default.nix b/nixos/hosts/framework-server/default.nix index 282e5ee0..0d641d81 100644 --- a/nixos/hosts/framework-server/default.nix +++ b/nixos/hosts/framework-server/default.nix @@ -55,8 +55,7 @@ # Forward mail port 25 to sysctl.io / linode networking.firewall.extraCommands = '' - iptables -A PREROUTING -t nat -i wireguard0 -p tcp --dport 25 -j DNAT --to 10.100.0.1:25 - iptables -A INPUT -p tcp -m state --state NEW --dport 25 -i wireguard0 -j ACCEPT + iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination 10.100.0.1:25 ''; boot.initrd.services.udev.rules = ''