What are all the ports: 80, 443, 3478, 8080, 8443 in NextCloud AIO used for? Do I need to have all of them opened on my router for NextCloud to work. Im running it on a linux machine running ubuntu. I used this script and these instructions to install.:
// For Linux and without a web server or reverse proxy (like Apache, Nginx and else) already in place:
sudo docker run
So as I understand it, if I don’t install Talk and I’m not using outside of local network. Then the only port that needs to be opened on the router is 443/TCP. But if I want to use NextCloud outside my network as well as Talk. I need to have 80/TCP, 443/BOTH, 3478/BOTH, 8080/TCP, 8443/TCP open.
Additionally, ports 80, 8080, and 8443 are all used to access your NextCloud interface, but they vary in security due to the mechanism of getting a certificate? Port 443/BOTH is used for the Apache server. And as mentioned 3478/BOTH is for Talk. Is that a good basic understanding?
if don’t want external access you don’t need any external open ports (or if you still want ACME cert you need to to open port 80/tcp as well - this is required by ACME certificate generation) - but if you open 80 and/or 443 Nextcloud becomes available externally.
→ removed not required ports.
I think you refer to this point in docs which clearly states this in intended to run behind reverse proxy:
Run the command below in order to start the container on Linux and without a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else) already in place:
the “without web server” statement sounds weird for me… as webserver is always part of AiO solution.
AiO is a tough piece of software and every admin should really spend time understanding what and how is tied together and how to use the system right.