Crates.io | ping-proxy |
lib.rs | ping-proxy |
version | 0.1.0 |
source | src |
created_at | 2022-02-16 14:19:08.394513 |
updated_at | 2022-02-16 14:19:08.394513 |
description | A utility to send ICMP request packets through a proxy agent |
homepage | https://github.com/guojing7/ping-proxy |
repository | https://github.com/guojing7/ping-proxy |
max_upload_size | |
id | 533342 |
size | 41,576 |
The ping-proxy is a ping utility to send ICMP request packets through a proxy agent.
First, start the proxy agent.
guojing@dev$ sudo ./proxy
listen on port 2000 ...
Second, start a new terminal, and ping the host 10.0.0.50.
guojing@dev$ ./ping -r localhost -c 4 10.0.0.50
ping 10.0.0.50 (10.0.0.50) 64 bytes of data
64 bytes from 10.0.0.50: seq 1 ttl 64 time 0.469 ms
64 bytes from 10.0.0.50: seq 2 ttl 64 time 0.638 ms
64 bytes from 10.0.0.50: seq 3 ttl 64 time 0.633 ms
64 bytes from 10.0.0.50: seq 4 ttl 64 time 0.859 ms
--- 10.0.0.50 ping statistics ---
4 packets tx, 4 rx, 0 lost, 0 timeout, 0% packets loss
rtt min/max/avg 0.469/0.859/0.64975 ms
I encountered a case which the IoT devices only accept packet from the specified MAC address, because it use the hardware MAC filter function. So, I write the ping-proxy to ping those devices at any where. The proxy accept ping tasks and do the real ping works.
This project is licensed under the MIT license.
All contributions are welcomed!