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