How to Test Proxy Servers from Remote Client
curl --proxy [protocol]://[proxy ip address]:[port] [url]
There are quite numbers of parameters, but it’s nothing special. It’s only asking for what proxy protocol, of which server, via what port, and in that order. For URL, I personally recommend using icanhazip.com
, the site returns the public IP address of the user, so it is helpful if you are testing if the connection is passed through VPN.
If your proxy server requires authentication, curl
does offer authentication options. Do be mindful though, --proxy-anyauth
negotiates authentication method with the server, but it can fail, in which case, authentication method can be specified instead, such as --proxy-ntlm
.
curl --proxy-user [username]:[password] --proxy-anyauth --proxy [protocol]://[proxy ip address]:[port] [url]