From edd590117e8876fb422cbf833d4e6ec1fe77d2c4 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 24 Sep 2025 12:06:41 +0100 Subject: mugam: Switch hrrol to well-known ports. Switching to well-known ports makes the configuration simpler, and lets us take advantage of defaults. The non-standard ports were from the days when Guix was but a container running on hrrol's Parabola. --- mugam-nftables-rules.conf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'mugam-nftables-rules.conf') diff --git a/mugam-nftables-rules.conf b/mugam-nftables-rules.conf index 261a98b..0f18d46 100644 --- a/mugam-nftables-rules.conf +++ b/mugam-nftables-rules.conf @@ -22,13 +22,7 @@ table ip nat { chain prerouting { type nat hook prerouting priority dstnat; # Forward ports to various services. - # E-mail - iifname eth0 tcp dport smtp dnat to $hrrol:8025 - iifname eth0 tcp dport pop3s dnat to $hrrol:8995 - iifname eth0 tcp dport smtps dnat to $hrrol:8465 - iifname eth0 tcp dport submission dnat to $hrrol:8587 - # XMPP - iifname eth0 tcp dport {xmpp-client, xmpp-server} dnat to $hrrol + iifname eth0 tcp dport {smtp, smtps, submission, pop3s, xmpp-client, xmpp-server} dnat to $hrrol } chain postrouting { type nat hook postrouting priority srcnat; -- cgit 1.4.1