This documentation explains how to set up a DietPi distribution server to act as a firewall and gateway to a secure LAN sub-net.