Problem:
I realized that my box randomly (every 5-7 days) closes the ports of my nextcloud (80, 443). And I find myself disconnected from my cloud.
Solution found:
Go to my nextcloud locally: https://IP:4443, on the port tab. Without changing anything just press apply. The ports are open again, and I can access my cloud.
Question:
What script is launched when I press this button ? and where to find it ? I want to create a routine that will run this script every X time or at each disconnection.