Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: gkhngdc on December 27, 2023, 12:18:51 AM
-
Hello,
php curl gives error when try to get this xml "https://www.tcmb.gov.tr/kurlar/today.xml"
Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host
Can anyone help me?
-
Do you allow port 443 on your TCP_OUT in your csf firewall?
-
yes csf firewall tcp out 443 port is open
-
Is it possibly that your servers IP has been blocked by tcmb.gov.tr, as no route to host is most likely a firewall issue. Couple other issues might be ip6/4 related, but I'm going to assume that your server can reach other ip4 only hosts.
Try " ping -4 google.com " then "ping -4 www.tcmb.gov.tr" and post the results.
-
What was the frequency of your curl attempts? You likely could've trigged a firewall on the other web server. I can connect to it from here as a one-off connection in a web browser and via curl in the CLI.
-
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
--- www.tcmb.gov.tr ping statistics ---
34 packets transmitted, 0 received, 100% packet loss, time 32999ms
I just installed this server. It's been like this since the beginning.
-
reach out to tcmb.gov.tr and ask them to check their firewall for your IP being blocked. If you just got the IP, it could be blocked due to the last person who the IP was issued to was a spammer or hacker.