测试通过代理本机与对方主机是否连通
命令:
wget "http://remote_ip:remote_port" -e use_proxy=yes -e http_proxy=proxy_ip:proxy_port #remote_ip:remote_port 远程主机IP:端口 #proxy_ip:proxy_port 代理主机IP:端口
连通截图如下,会在当前目录下下载一个index.html文件。

不连通截图如下,联不通会一直重试。

命令:
wget "http://remote_ip:remote_port" -e use_proxy=yes -e http_proxy=proxy_ip:proxy_port #remote_ip:remote_port 远程主机IP:端口 #proxy_ip:proxy_port 代理主机IP:端口
连通截图如下,会在当前目录下下载一个index.html文件。

不连通截图如下,联不通会一直重试。
