Which all ports should I open for proper working of the cyber panel

I planing to harden my server(ubuntu 20.4), so I want to know which all port should I open for the proper working