MailCleaner / MailCleaner-Next

Fork of MailCleaner for Debian 12
GNU General Public License v3.0
3 stars 2 forks source link

UFW #33

Open JohnMertz opened 9 months ago

JohnMertz commented 9 months ago

In order to smooth the transition from iptables to nftables, I'm going to leverage ufw configuration files to generate the rules instead.

Since services are now running with lower permissions, it will also be necessary to configure additional non-privileged ports to forward to privileged ones.

JohnMertz commented 2 months ago

There is a systemd loop with UFW. The default unit file wants 'network-pre.target' and should run before it. However, other services in MailCleaner need networking to be up already. UFW needs mariadb to be running to run the dump script, but it won't run until the network is up, and the network won't be up until UFW is.

So, there's a few possible solutions:

I'm still getting up to speed on the UFW configuration to figure out how to best dynamically load and unload rules.