cURL error 7: Failed to connect to localhost port 443: Connection refused

USY

Active member
Hi,

I am running XenForo Forum on my Plesk which running behind Cloudflare.
I get following erro log, which is showing me that the curl connection to localhost on port 443 is refused.
1674674886396.webp

All curl's to localhost, 127.0.0.1 and 0.0.0.0 are refused:
Bash:
root@srv:~# curl -vv localhost:443
*   Trying ::1:443...
* TCP_NODELAY set
* connect to ::1 port 443 failed: Connection refused
*   Trying 127.0.0.1:443...
* TCP_NODELAY set
* connect to 127.0.0.1 port 443 failed: Connection refused
* Failed to connect to localhost port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 443: Connection refused

Bash:
root@srv:~# curl -vv 127.0.0.1:443
*   Trying 127.0.0.1:443...
* TCP_NODELAY set
* connect to 127.0.0.1 port 443 failed: Connection refused
* Failed to connect to 127.0.0.1 port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 127.0.0.1 port 443: Connection refused

Bash:
root@srv:~# curl -vv 0.0.0.0:443
*   Trying 0.0.0.0:443...
* TCP_NODELAY set
* connect to 0.0.0.0 port 443 failed: Connection refused
* Failed to connect to 0.0.0.0 port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 0.0.0.0 port 443: Connection refused

UFW Firewall is disabled:
Bash:
root@srv:~# sudo ufw status
Status: inactive

netstat show me that port 443 is active and listen
1674675894074.webp

To be sure I also have turn OFF the "Security Level" on CF Firewall.
1674676078457.webp


No matter what I've tried, so far unfortunately without success.

I would therefore be very grateful for any tip or solution to solve this issue.

Regards
 
I get also:
1674816042787.png

But the strange thing if I curl the doman. it works:

Bash:
root@srv:~# curl -vv wns2-par02p.notify.windows.com
Trying 20.199.121.23:80...
TCP_NODELAY set
Connected to wns2-par02p.notify.windows.com (20.199.121.23) port 80 (#0)

root@srv:~# curl -vv wns2-par02p.notify.windows.com
*   Trying 20.199.121.23:80...
* TCP_NODELAY set
* Connected to wns2-par02p.notify.windows.com (20.199.121.23) port 80 (#0)
> GET / HTTP/1.1
> Host: wns2-par02p.notify.windows.com
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 403 Forbidden
< Content-Length: 0
< X-WNS-MSG-ID: 17AF1031612A5D89
< X-WNS-DEBUG-TRACE: PA2PEPF0000091E
< Date: Fri, 27 Jan 2023 10:36:47 GMT
<
* Connection #0 to host wns2-par02p.notify.windows.com left intact
 
Last edited:
Back
Top Bottom