Problem with open port

Hi,
I have HA installed in virtualbox on a machine running Ubuntu 20.04. I’m having a problem where after a couple of days the port I have opened for HA closes and I have to restart my router (Huawei B525s-23a) after which the port opens and everything works normally.