For what it’s worth, I have found it useful to keep file servers like Nextcloud publicly available, and not to restrict access to specific IP addresses. This is particularly useful for the purpose of sharing files with others, or sending them a link to which they can upload files securely. One can run fail2ban to thwart the bots that will inevitably attempt to gain unauthorized access the server.
1 Like