Error: failed: Connection timed out
search cancel

Error: failed: Connection timed out

book

Article ID: 238965

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

In Explicit proxy deployment on linux client user is performing wget as following and getting failed: Connection timed out error.

$ wget http://example.com


--2022-04-07 10:58:34--  http://example.com/
Resolving example.com (example.com)... 93.184.216.34
Connecting to example.com (example.com)|93.184.216.34|:80... failed: Connection timed out.

Resolution

wget output shows that client is performing DNS resolution and trying to connect to resolved IP address 93.184.216.34 of OCS (example.com) and not getting any response hence it is getting failed: connection timed out. This indicate that linux client is not configured with correct explicit proxy.

If linux client would have been properly configured with explicit proxy then linux client should not perform DNS resolution and it should send request to proxy and then proxy should perform DNS resolution on behalf of client.

Once client is configured with correct explicit proxy, issue should get resolved.

 

Note: For domain added in Explicit proxy bypass list DNS resolution will be performed by client.

 

Additional Information

Use following wget or curl command to send request via proxy (i.e. 10.0.80.80 is proxy IP)

$ wget -e http_proxy=10.0.80.80:8080 http://example.com

--2022-04-07 11:44:51--  http://example.com/
Connecting to 10.0.80.80:8080... connected.
Proxy request sent, awaiting response

 

$ curl -x "http://10.0.80.80:8080" http://example.com