Linux – How to ping through SOCKS5 proxy


I have some SOCK5 proxy made through SSH tunnel as (8081, 8082, etc). I want to ping a website through different proxies to find which one provides a faster route.

How can I use the ping command or similar ones in Ubuntu terminal to do? Ultimately, I wish to write a bash script for the whole comparison.

Best Answer

ICMP protocol won't work over SOCKS, but you can employ nmap to do TCP ping. Check this l4ping to see how to do that.