
該ping
程式是 ICMP 協定的實作(並且基於原始套接字而不是 TCP 或 UDP 套接字),我不知道如果它應該透過像proxychains
.
例如,當我嘗試以下操作時,程式將永遠掛起,直到我Ctrl-C
這樣做:
[root@hostA tmp]# proxychains ping www.google.com
ProxyChains-3.1 (http://proxychains.sf.net)
|DNS-request| www.google.com
|S-chain|-<>-127.0.0.1:4000-<><>-4.2.2.2:53-<><>-OK
|DNS-response| www.google.com is 209.85.175.103
PING (209.85.175.103) 56(84) bytes of data.
( ***** HUNG HERE FOREVER! ***** )
然而,像這樣的程式curl
運行得很好:
[root@hostA tmp]# proxychains curl http://thin.npr.org > page.html
|DNS-request| thin.npr.org
|S-chain|-<>-127.0.0.1:4000-<><>-4.2.2.2:53-<><>-OK
|DNS-response| thin.npr.org is 216.35.221.76
|S-chain|-<>-127.0.0.1:4000-<><>-216.35.221.76:80-<><>-OK
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2295 100 2295 0 0 284 0 0:00:08 0:00:08 --:--:-- 565
[root@hostA tmp]# ls -l page.html
-rw-r--r--. 1 root root 2339 Jun 29 17:37 page.html
另請注意,我可以ping www.google.com
在另一台支援 Internet 的電腦上正常工作,而無需使用proxychains
.換句話說,www.google.com
它看起來非常像一個ping
可用的伺服器。
答案1
我猜不會。如果你看一下http://proxychains.sourceforge.net/它明確聲明它支援 TCP 和 DNS(實際上可以是 UDP 或 TCP)
您可以在這裡找到類似的答案:http://www.backtrack-linux.org/wiki/index.php/Proxychains
一般來說,代理不支援 ICMP 流量。代理鏈也沒有