I am trying to set up a server and have problems GETing the standard nginx welcome page.
My setup:
- Hetzner VPS with Ubuntu 24.04. LTS and Docker
- I did basic server hardening (updated ubuntu, restricted ssh root access, changed ssh port, set up Fail2Ban)
- I did not touch
iptables/nftablesyet (see screenshots below), there is no firewall active in the Hetzner cloud console - I bought a domain and changed DNS settings (two A and two AAAA entries) in the Hetzner DNS console (see picture below). I waited a day and get now the correct ip addresses on my local machine, when running
nslookupfor my domain (e.g.nslookup example.com) - Docker is running on the Ubuntu server with the official nginx image (
docker run -it --rm -d -p 8080:80 nginx) - I can
pingthe domain from my local machine and see the matching logs on my Ubuntu server withtcpdump ip proto \\icmp
My problem:
I can not connect to port 8080 of my server, to see the standard welcome page of nginx.
curl example.comreturnsConnection refusedfor IPv4 andNetwork is unreachablefor IPv6- Postman returns
Error: connect ECONNREFUSEDfor the callGET examlpe.com - Browser (Firefox 129.0.2) is unable to load the page, the developer tools show the error
NS_ERROR_CONNECTION_REFUSED
Did I miss something? How can I debug this issue further?
Screenshots:


