From 1655880ebbbe7cebc25d6050aa987272ab001b35 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 17 Apr 2024 18:07:07 +0900 Subject: [PATCH] Trying out HAPRoxy config for my mailserver --- nixos/hosts/osaka-linode-01/firewall.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/nixos/hosts/osaka-linode-01/firewall.nix b/nixos/hosts/osaka-linode-01/firewall.nix index 730faecd..f9977caa 100644 --- a/nixos/hosts/osaka-linode-01/firewall.nix +++ b/nixos/hosts/osaka-linode-01/firewall.nix @@ -67,17 +67,27 @@ frontend tcp mode tcp - bind :443 bind :42420 bind :25565 + bind :4443 + bind :443 + default_backend backend_tcp + + frontend mail + mode tcp bind :25 bind :143 bind :465 bind :587 bind :993 bind :4190 - bind :4443 - default_backend backend_tcp + default_backend backend_mail + + backend backend_mail + mode tcp + option forwarded + option forwardfor if-none + server mailserver-wg 10.100.1.3 backend backend_tcp mode tcp