From 4e985ca70a930ad9ee70869ac5c18a00c8f7b1a6 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 10 Jan 2024 20:49:43 +0900 Subject: [PATCH] re-add mailserver ports --- nixos/hosts/framework-server/firewall.nix | 6 ++++++ nixos/hosts/osaka-linode-01/firewall.nix | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/nixos/hosts/framework-server/firewall.nix b/nixos/hosts/framework-server/firewall.nix index 4070cfa8..dd4daf2a 100644 --- a/nixos/hosts/framework-server/firewall.nix +++ b/nixos/hosts/framework-server/firewall.nix @@ -13,5 +13,11 @@ 5222 # Jitsi 5347 # Jitsi 5280 # Jitsi + 25 # Mailserver + 143 # Mailserver + 465 # Mailserver + 587 # Mailserver + 993 # Mailserver + 4190 # Mailserver ]; } diff --git a/nixos/hosts/osaka-linode-01/firewall.nix b/nixos/hosts/osaka-linode-01/firewall.nix index 31e86542..43501e0b 100644 --- a/nixos/hosts/osaka-linode-01/firewall.nix +++ b/nixos/hosts/osaka-linode-01/firewall.nix @@ -7,6 +7,12 @@ 42420 # Vintage Story 25565 # Minecraft 1443 # Headscale DERP (tcp) + 25 # Mailserver + 143 # Mailserver + 465 # Mailserver + 587 # Mailserver + 993 # Mailserver + 4190 # Mailserver ]; allowedUDPPorts = [ 3478 # Headscale DERP (udp) @@ -27,6 +33,12 @@ iifname "enp0s4" tcp dport 1443 dnat to 10.100.0.2:1443; # Headscale DERP (tcp) iifname "enp0s4" udp dport 3478 dnat to 10.100.0.2:3478; # Headscale DERP (udp) iifname "enp0s4" udp dport 10000 dnat to 10.100.0.2:10000; # Headscale DERP (udp) + iifname "enp0s4" tcp dport 25 dnat to 10.100.0.2:25; # Mailserver + iifname "enp0s4" tcp dport 143 dnat to 10.100.0.2:143; # Mailserver + iifname "enp0s4" tcp dport 465 dnat to 10.100.0.2:465; # Mailserver + iifname "enp0s4" tcp dport 587 dnat to 10.100.0.2:587; # Mailserver + iifname "enp0s4" tcp dport 993 dnat to 10.100.0.2:993; # Mailserver + iifname "enp0s4" tcp dport 4190 dnat to 10.100.0.2:419; # Mailserver } } ''; @@ -44,6 +56,12 @@ { sourcePort = 1443; proto = "tcp"; destination = "10.100.0.2:1443"; } # Headscale DERP (tcp) { sourcePort = 3478; proto = "udp"; destination = "10.100.0.2:3478"; } # Headscale DERP (udp) { sourcePort = 10000; proto = "udp"; destination = "10.100.0.2:10000"; } # Headscale DERP (udp) + { sourcePort = 25; proto = "tcp"; destination = "10.100.0.2:80"; } # Mailserver + { sourcePort = 143; proto = "tcp"; destination = "10.100.0.2:80"; } # Mailserver + { sourcePort = 465; proto = "tcp"; destination = "10.100.0.2:80"; } # Mailserver + { sourcePort = 587; proto = "tcp"; destination = "10.100.0.2:80"; } # Mailserver + { sourcePort = 993; proto = "tcp"; destination = "10.100.0.2:80"; } # Mailserver + { sourcePort = 4190; proto = "tcp"; destination = "10.100.0.2:80"; } # Mailserver ]; }; };