Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7169

Unable to GET nginx welcome page from Hetzner Ubuntu 24.04. LTS server with custom domain and docker

$
0
0

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 / nftables yet (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 nslookup for 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 ping the domain from my local machine and see the matching logs on my Ubuntu server with tcpdump 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.com returns Connection refused for IPv4 and Network is unreachable for IPv6
  • Postman returns Error: connect ECONNREFUSED for the call GET 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:

iptables

nftables

hetzner DNS console entries


Viewing all articles
Browse latest Browse all 7169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>