cURL IPV4 not working while ports 443 and 80 are open
0
votes
0
answers
53
views
I'm currently setting up a Linux VPS (Debian-based), to run a Flask app and a python script to make API calls (the API only works over IPv4, not IPv6).
I'm having trouble with outgoing HTTPS connections (port 443). Here's what's happening:
- Ping and traceroute to external IPs (e.g. 1.1.1.1, 142.251.40.100) work fine.
- But any HTTPS request (e.g. curl https://www.google.com or openssl s_client -connect) hangs and never completes.
- There are no firewall rules active (iptables -F, policies all set to ACCEPT).
- There's no proxy configured (echo $http_proxy and $https_proxy return nothing).
- tcpdump on the main interface shows no outgoing or incoming traffic for port 443.
- nmap -Pn -p 443 shows port 443 as filtered for external servers (like Google).
- Outgoing connections on other ports (e.g., ping, DNS, etc.) seem to work.
I also verified the default route (ip route show) and it looks fine. The interface has a public IP, and curl or wget to HTTP or HTTPS just hangs.
Reaching the Hostinger assistance, they stated: "your 443 and 80 port are opened so the network connection should be working".
I have no more ideas, any tips?
Thank you for your reading and help!
Asked by corentin_a
(1 rep)
Apr 29, 2025, 09:17 AM