How to ping through SOCKS5 proxy?

6,422

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.

Share:
6,422

Related videos on Youtube

mfbayrarian
Author by

mfbayrarian

Updated on September 18, 2022

Comments

  • mfbayrarian
    mfbayrarian almost 2 years

    I have some SOCK5 proxy made through SSH tunnel as 127.0.0.1:8080 (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.

  • Adrien
    Adrien over 7 years
    Correct, SOCKS5 only supports TCP and UDP, so you could also theoretically do a UDP ping, but support for UDP seems a bit less reliable in SOCKS servers, probably because it's not often used.
  • Adrien
    Adrien over 7 years
    P.s. ping is ICMP not IGMP
  • Alex
    Alex over 7 years
    @Adrien You right, typo fixed