What happens when you try to run the following command from the server via SSH?
curl -svo /dev/null https://remoteservices.invisionpower.com
If the above command does not work, it's a firewall issue.
The output SHOULD look something like:
curl -svo /dev/null https://remoteservices.invisionpower.com
* Trying [2600:9000:2508:ec00:16:1470:7d40:93a1]:443...
* Connected to remoteservices.invisionpower.com (2600:9000:2508:ec00:16:1470:7d40:93a1) port 443 (#0)
* ALPN: offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
} [337 bytes data]
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [5030 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [36 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [36 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256
* ALPN: server accepted h2
* Server certificate:
* subject: CN=remoteservices.invisioncommunity.com
* start date: Feb 24 00:00:00 2023 GMT
* expire date: Feb 8 23:59:59 2024 GMT
* subjectAltName: host "remoteservices.invisionpower.com" matched cert's "remoteservices.invisionpower.com"
* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02
* SSL certificate verify ok.
* using HTTP/2
* h2h3 [:method: GET]
* h2h3 [:path: /]
* h2h3 [:scheme: https]
* h2h3 [:authority: remoteservices.invisionpower.com]
* h2h3 [user-agent: curl/7.71.1-DEV]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x7f8ae000f400)
> GET / HTTP/2
> Host: remoteservices.invisionpower.com
> user-agent: curl/7.71.1-DEV
> accept: */*
>
< HTTP/2 500
< content-type: text/html; charset=UTF-8
< content-length: 0
< date: Sat, 17 Jun 2023 15:09:46 GMT
< set-cookie: AWSALB=NcKhSYLwWLgh7aoGLNLNvun4SZ2jppFOAQ7+R4MXstAJutTYeHbMBytHjYTjQl7deYakTzjIZtpFQhOrH+heaCsP0G+Ezlz/wZEu/AGSPf36y2umJMkaYAazjQgW; Expires=Sat, 24 Jun 2023 15:09:46 GMT; Path=/
< set-cookie: AWSALBCORS=NcKhSYLwWLgh7aoGLNLNvun4SZ2jppFOAQ7+R4MXstAJutTYeHbMBytHjYTjQl7deYakTzjIZtpFQhOrH+heaCsP0G+Ezlz/wZEu/AGSPf36y2umJMkaYAazjQgW; Expires=Sat, 24 Jun 2023 15:09:46 GMT; Path=/; SameSite=None
< server: Apache
< x-cache: Error from cloudfront
< via: 1.1 c625b1bdde545acdeb26c9f6ad3a8c6e.cloudfront.net (CloudFront)
< x-amz-cf-pop: IAD12-P1
< x-amz-cf-id: FL5WuKYD_sg0GW2jdobrQeVb2B6Iusx0DUKg7ymsCEcRDlZZtia1qw==
<
{ [0 bytes data]
* Connection #0 to host remoteservices.invisionpower.com left intact
If you don't have the above, it means the firewall never allowed the outbound request.
Firewalls have two network paths. Inbound (meaning from the internet to your server) and outbound (from your server to the internet). Your firewall sounds like it is blocking OUTBOUND while allowing INBOUND. If you are not sure how to fix this, you would need to work with your hosting provider.