Can I use http tunnel to ping or traceroute through a proxy with firewall?

前端 未结 2 1053
太阳男子
太阳男子 2021-02-13 20:17

I don\'t know if there is a way to ping a target outside my LAN proxy which accepts only Http requests through a squid proxy... I read somewhere that one way to deal with such p

2条回答
  •  余生分开走
    2021-02-13 20:30

    It's not exactly what you were looking for, but if you can access and external ssh server, you can run it through that, and the results will reflect the ping time to the ssh server:

    $ ssh username@server 'ping -c 1 google.com' 
    PING google.com (72.14.204.147) 56(84) bytes of data.
    64 bytes from iad04s01-in-f147.1e100.net (72.14.204.147): icmp_seq=1 ttl=57 time=2.64 ms
    
    --- google.com ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 2.640/2.640/2.640/0.000 ms 
    

提交回复
热议问题