Issue with curl to specific domain after upgrading to CloudLinux

Hoxer

Registered
Jun 23, 2022
3
0
1
Israel
cPanel Access Level
Root Administrator
Since we upgraded to CloudLinux
curl simply times out to a specific domain of one of our clients.

I tried the command: curl -v https://google.com
and it works correctly,

While if I try the client's API I get
curl -v https://api.example.com
* Rebuilt URL to: https://api.example.com/
* Trying 111.111.111.111...
* TCP_NODELAY set
* connect to 111.111.111.111 port 443 failed: Connection timed out
* Failed to connect to api.example.com port 443: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to api.example.com port 443: Connection timed out
(domain and ip removed)

On any other server it works correctly, and client claims it happens since we upgraded to CloudLinux 8.6
6 days ago (From AlmaLinux 8.6)

Their IP is static and it does not show when I execute iptables -S
or in the file /etc/csf/csf.deny
The issue also occurs when CSF is off.
No hits for the IP in ModSec


Any ideas?
 

Hoxer

Registered
Jun 23, 2022
3
0
1
Israel
cPanel Access Level
Root Administrator
Hey there! I'm not seeing anything obvious on my end about CloudLinux and Curl. As a test, have you pulled the user out of CageFS, or at least rebuilt CageFS to see if that changes the behavior?
I have tried both rebuilding and pulling the user out of CageFS
Unfortunately this did not fix the issue.

edit:
I tried a simple
Code:
curl -v api.example.com
as root and its also not responding
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Are you able to connect with any other tools, or is it specifically curl? I'm not sure there would be anything in the operating system update that would lead to this behavior, and it doesn't seem like this would be related to cPanel tools. Does a basic ping or traceroute work properly?
 

Hoxer

Registered
Jun 23, 2022
3
0
1
Israel
cPanel Access Level
Root Administrator
Are you able to connect with any other tools, or is it specifically curl? I'm not sure there would be anything in the operating system update that would lead to this behavior, and it doesn't seem like this would be related to cPanel tools. Does a basic ping or traceroute work properly?
You are right. it's not only curl.
It seems like there is no connectivity at all.

I already called the API provider to see if they blocked the customer's dedicated ip but they said they did not.
And I also tried from different ips on same servers and none work.

API provider did confirm that the calls have stopped at the same date as we upgraded.

At this point i'm not sure what else to try.