1

I want the PING package to go through the proxy program, but the program only supports forwarding packets from the TCP layer and does not support forwarding ICMP packets.

Is there any solution?

Alan42
  • 339
  • 5
  • 16
  • 1
    You could better specify your problem. In fact, if you are looking for a tool the referred "serverfault" platform is suitable since stackoverflow is about programming issues. – Cleber Jorge Amaral Sep 11 '18 at 16:53
  • Thanks for that advice. – Alan42 Sep 12 '18 at 07:05
  • But I'm looking for a way to convert icmp packet to tcp packet, it means I have to use "ping" program. – Alan42 Sep 12 '18 at 07:22
  • 2
    It seems not feaseble. You would have to implement a bridge in the middle, intercepting ICMP Pings and converting to "TCP ping". Anyway, the icmp ping back would not be a ping anymore. – Cleber Jorge Amaral Sep 12 '18 at 12:15

1 Answers1

1

If you need a tool, you can use a software like psping, paping and tcping. They test time response similar as ICMP Ping but over TCP.

If you need to implement by hand, you may use SYN package and its response (SYN ACK) to measure. For C#, this thread is discussing the implementation.

Cleber Jorge Amaral
  • 1,316
  • 13
  • 26