I see that UFW (UncomplicatedFireWall) will read in its rules from /lib/ufw/user.rules. However, it would be convenient if the rules could by split across multiple files, so that different servers can easily reuse different subsets of rules depending on the services they are running. For example:
/etc/ufw.d/ssh.rules/etc/ufw.d/mongodb.rules
Is this possible? I couldn't find any reference to something like this in the documentation.
I can workaround this with something like cat /etc/ufw.d/* > /lib/ufw/user.rules during the configuration stage, but it would be easier if UFW had this built in. Does it? Or is there a better workaround than this?
Thanks a lot.