My web server is (include version): nginx version: nginx/1.21.3 (x86_64-pc-linux-gnu)
The operating system my web server runs on is (include version): OpenWrt 22.03.0 r19685-512e76967f / LuCI openwrt-22.03 branch git-23.038.39289-18dde0c
The token is written to the correct place and is available externally at the address given so I do not understand the 'connection refused' error. Has anyone got any ideas of what is wrong?
$ nmap -Pn greenthing.co.uk
Starting Nmap 7.80 ( https://nmap.org ) at 2023-02-14 16:28 UTC
Nmap scan report for greenthing.co.uk (212.159.109.130)
Host is up (0.16s latency).
rDNS record for 212.159.109.130: oddsage.plus.com
Not shown: 996 closed ports
PORT STATE SERVICE
25/tcp filtered smtp
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
Nmap done: 1 IP address (1 host up) scanned in 41.70 seconds
That the URL is not available from many places in the public Internet. My result:
curl http://greenthing.co.uk/.well-known/acme-challenge/JTaGG1-gjha-jKgLZMd-ZwBzGq12epSyuH674EvRYa0
curl: (7) Failed to connect to greenthing.co.uk port 80 after 121 ms: Connection refused
Can you try from a mobile phone with wifi off so you are using the carrier network?
If that works, do you have some sort of geographic based firewall?
Although, I did try from a London based host earlier and could not see your domain either so I don't think that is it.
Hi. Thank you for the quick reply and heads up on your experience. I can browse the token on 4G and from my work pc. I haven't tried curl or wget but struggle to understand why the result may be different or why there should be any regional variation. I will do some external digging from work tomorrow.
It wouldn't be diff unless you have a firewall that is checking User-Agent strings and blocking anything that doesn't look like a browser. As just one idea.
EDIT: I just tried using a browser from a test server on US East Coast and get same "refused" error so probably not user-agent related.
$ curl -Ii http://greenthing.co.uk/
curl: (7) Failed to connect to greenthing.co.uk port 80 after 3434 ms: Connection refused
I get this with nmap -Pn
$ nmap -Pn greenthing.co.uk
Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.
Starting Nmap 7.91 ( https://nmap.org ) at 2023-02-14 15:27 PST
Nmap scan report for greenthing.co.uk (212.159.109.130)
Host is up (0.16s latency).
rDNS record for 212.159.109.130: oddsage.plus.com
Not shown: 996 closed ports
PORT STATE SERVICE
25/tcp filtered smtp
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
Nmap done: 1 IP address (1 host up) scanned in 40.37 seconds