If you can install a second gigabit NIC into the optiplex it can work very nicely with OPNSense as the main gateway. Then you can connect the LAN side to a simple un-managed switch and branch out to anything further from there.
Edit: OpenWRT is a bit of a pain to manage on x86, so I would try to avoid it for that.