Hi,
I have just finished my first Discourse installation on a Ubuntu 22.04.4 server on Proxmox VE (virtual environment).
The installation went fine, with no errors, but after finishing it-- the forum site won’t open saying that the service is not accessible.
When checking from my network I see the ports as closed:
PS C:\Users\mwojt> nmap 192.168.131.211
Nmap scan report for 192.168.131.211
PORT STATE SERVICE
22/tcp open ssh
80/tcp closed http
443/tcp closed https
But when running the same for localhost from inside the Ubuntu machine it shows as open:
root@ubuntu-discourse:~# nmap localhost
Nmap scan report for localhost (127.0.0.1)
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
However if I run the check the IP address from the same Ubuntu VM to the I see this:
root@ubuntu-discourse:~# nmap 192.168.131.211
Nmap scan report for ubuntu-discourse (192.168.131.211)
PORT STATE SERVICE
22/tcp open ssh
80/tcp filtered http
443/tcp filtered https
So, the ports show up as filtered.
The ports were opened at the firewall:
root@ubuntu-discourse:~# ufw status
Status: active
To Action From
-- ------ ----
80 ALLOW Anywhere
443 ALLOW Anywhere
22 ALLOW Anywhere
80 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
And the Docker port forwarding seems to be set correctly:
root@ubuntu-discourse:~# docker port 6922c7802903
80/tcp -> 0.0.0.0:80
80/tcp -> [::]:80
443/tcp -> 0.0.0.0:443
443/tcp -> [::]:443
What do I do wrong? Where is the problem?