LEDE is what you're looking for if you have limited storage capacity and very little RAM (embedded devices, consumer "routers", things like the rPi)
OpenBSD also works wonderfully as a firewall solution. Their developers maintain OpenSSH, LibreSSL, pf and a bunch of other mission critical software.