Coder Social home page Coder Social logo

ping-proxy's Introduction

ping-proxy

The ping-proxy is a ping utility to send ICMP request packets through a proxy agent.

usage

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

Why ping-proxy

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.

License

This project is licensed under the MIT license.

Contribution

All contributions are welcomed!

ping-proxy's People

Contributors

guojing7 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.