Hello Nextcloud administrators,
To be honest: I have a very strange problem that I cannot explain: despite the fact that I opened port 443 on my router and server, the port stays closed?!
Iām not sure if itās due to Nextcloud AIO or if itās a problem of Red Hat Enterprise Linux 9.4 (the distribution that Iām using).
This is what I have done so far:
Opened the https services on the server
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
Because this didnāt seem enough I also opened port 80 and 443 manually:
sudo firewall-cmd --permanent --zone=public --add-port=443/tcp
sudo firewall-cmd --permanent --zone=public --add-port=443/udp
sudo firewall-cmd --reload
Now, you would think port 443 is open, but when I try to reach the server I get the following message:
telnet [domain name server] 443
telnet: connect to address [ip address server]: Connection refused
(if I use an online webservice I get the same message.)
(When I tried the above command I made sure that port 443 was open on the router.)
When I check if the port is open, it still says thatās closed (?!):
sudo firewall-cmd --query-port=443/tcp
no
sudo firewall-cmd --query-port=443/udp
no
When I run netstat I get the following result:
sudo netstat -tulpn | grep 443
tcp 0 0 127.0.0.1:44321 0.0.0.0:* LISTEN 1120/pmcd
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 3772937/docker-prox
tcp6 0 0 ::1:44321 :::* LISTEN 1120/pmcd
tcp6 0 0 :::8443 :::* LISTEN 3772945/docker-prox
Port 443 is nowhere?
Is the problem that Docker isnāt listening on port 443? (But according to the documentation I donāt need to do this explicitly.)
The command that I used to run Nextcloud AIO
sudo docker run -d \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 80:80 \
--publish 8080:8080 \
--publish 8443:8443 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
--env SKIP_DOMAIN_VALIDATION=true \
--security-opt label:disable \
ghcr.io/nextcloud-releases/all-in-one:latest
As you can see, I already added --env SKIP_DOMAIN_VALIDATION=true
(to skip domain validation) and --security-opt label:disable
(to allow SELinux access).
If anyone knows Iām doing wrong, please let me know!