Skip to content

Check Whether the Proxy Agent Is Running Normally

Run the following command in the terminal

Use curl to send a request through the local proxy and print only the HTTP status code:

curl -so /dev/null -w "%{http_code}" google.com -x socks5://127.0.0.1:10080
  • socks5 is the proxy protocol. It can be replaced with another protocol such as http.
  • 10080 is the proxy port. Replace it with the input port of your proxy service.

If the command returns 301 or 200, the proxy service is working. If it returns 000, the proxy service is not responding and cannot be used normally.

REF

[1]. Linux-Auto-PAC