Use ping through a SOCKS server?

I want to check the frequency if my SOCKS server is working fine. To do this, I thought that through the SOCKS server through ping 8.8.8.8 (google DNS server).

Is there any other recommended way? If this is optimal, how can I ping through SOCKS using python?

+3
source share
4 answers

SOCKS proxy provides a TCP proxy server (added support for SOCKS 5 UDP). You cannot execute ICMP Echo "through" the SOCKS proxy.

Even if you could, you would test ICMP Echo and Echo Reply, not that your SOCKS server is functioning properly.

, SOCKS " ", , SOCKS.

+5

httping SOCKS ping.

ping: ICMP ECHO_REQUEST
httping: -

ICMP Layer3 ( ) OSI, SOCKS Layer5 (Session Layer), httping Layer7 (Application Layer), ping SOCKS, httping .

, shadowsocks (- SOCKS5) VPS, macbook pro , 127.0.0.1:1080, , Google.

httping -x 127.0.0.1:1080 -g http://www.google.com -5

httping google SOCKS5

httping usage httping [options] -5 The proxy server selected is a SOCKS5 server. -g url This selects the url to probe. E.g.: http://localhost/ -x proxyhost[:port] Probe using a proxyserver.

+2

, , , ping .


activestate, , , - , , , .

0

, - - , , - socks .

curl --socks5 127.0.0.1:1080 ifconfig.me

,

curl: (7) Unable to receive initial SOCKS5 response.
0
source

All Articles