{"id":19544285,"url":"https://github.com/mehrdadrad/gping","last_synced_at":"2026-03-09T00:34:21.059Z","repository":{"id":64307723,"uuid":"262657003","full_name":"mehrdadrad/gping","owner":"mehrdadrad","description":"ping from remote host through gRPC","archived":false,"fork":false,"pushed_at":"2020-06-23T17:56:02.000Z","size":122,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-26T17:47:34.596Z","etag":null,"topics":["golang","grpc","mtls","ping"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mehrdadrad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-09T20:53:15.000Z","updated_at":"2024-09-06T00:14:50.000Z","dependencies_parsed_at":"2023-01-15T11:00:45.424Z","dependency_job_id":null,"html_url":"https://github.com/mehrdadrad/gping","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mehrdadrad/gping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fgping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fgping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fgping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fgping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehrdadrad","download_url":"https://codeload.github.com/mehrdadrad/gping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fgping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30278561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","grpc","mtls","ping"],"created_at":"2024-11-11T03:26:29.333Z","updated_at":"2026-03-09T00:34:21.031Z","avatar_url":"https://github.com/mehrdadrad.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gping\n[![Go Report Card](https://goreportcard.com/badge/github.com/mehrdadrad/gping)](https://goreportcard.com/report/github.com/mehrdadrad/gping)\n\ngping is a network tool to ping a target from a remote host. it works as client-server arch through gRPC protocol. it doesn't execute the ping shell command at the remote host instead it runs ping through [Golang ping library](https://github.com/mehrdadrad/ping). use cases can be measurement full mesh network latency between nodes / data center or ping targets from different data center without SSH access to remote host.\n\n## Features\n\n- ping from remote host through gRPC\n- ICMP raw socket and UDP\n- ping multiple hosts \n- IPv4 and IPv6\n- [mutual TLS authentication](https://github.com/mehrdadrad/gping/wiki/Set-Up-Mutual-TLS-Authentication)\n\n![gping](/gping.png?raw=true \"gping\")\n\n## Server side\n```\n#gping -server\n```\n\n## Single host\n```\n#gping -c 5 -r 192.168.10.15:3055 googl.com\n64 bytes from 172.217.14.78: icmp_seq=0 ttl=54 time=4.129 ms\n64 bytes from 172.217.14.78: icmp_seq=1 ttl=54 time=2.134 ms\n64 bytes from 172.217.14.78: icmp_seq=2 ttl=54 time=2.220 ms\n64 bytes from 172.217.14.78: icmp_seq=3 ttl=54 time=2.194 ms\n64 bytes from 172.217.14.78: icmp_seq=4 ttl=54 time=5.920 ms\n\n5 packets transmitted, 5 packets received, 0.0% packet loss\nRound-trip min/avg/max = 2.134/4.177/5.920 ms\n```\n## Multiple hosts\n```\ngping -c 5 -r 192.168.10.15:3055 yahoo.com google.com juniper.com\n```\n```json\n[\n  {\n    \"host\": \"google.com\",\n    \"min_rtt\": 2.531,\n    \"avg_rtt\": 3.859,\n    \"max_rtt\": 4.859\n  },\n  {\n    \"host\": \"yahoo.com\",\n    \"min_rtt\": 2.337,\n    \"avg_rtt\": 3.615,\n    \"max_rtt\": 4.431\n  },\n  {\n    \"host\": \"juniper.com\",\n    \"packet_loss\": 100,\n    \"err\": \"request timeout\"\n  }\n]\n```\n\n## Single host JSON format\n```\ngping -c 5 -json -r 192.168.10.15:3055 yahoo.com\n```\n```json\n{\"min_rtt\":2.444,\"avg_rtt\":3.855,\"max_rtt\":4.625}\n```\n\n\n\n## Quick Help\n```\n  usage:\n  gping [options] host(s)  \n  \n  options:\n  --count value, -c value     sets ping count (default: 4) [$GPING_COUNT]\n  --ttl value, -t value       sets the IP Time to Live (default: 64) [$GPING_TTL]\n  --tos value, -q value       sets quality of service in ICMP datagram (default: 0) [$GPING_TOS]\n  --size value                sets the number of data bytes to be sent (data + ICMP header) (default: 64) [$GPING_SIZE]\n  --interval value, -i value  sets wait between sending each packet in format ns,us,ms,s (default: \"1s\") [$GPING_INTERVAL]\n  --timeout value, -W value   sets time to wait for an ICMP reply in format ns,us,ms,s (default: \"2s\") [$GPING_TIMEOUT]\n  --remote value, -r value    sets remote server IP_ADDR:PORT [$GPING_REMOTE]\n  --json                      prints statistics in json format (default: false) [$GPING_JSON]\n  --silent                    prints just statistics (default: false) [$GPING_SILENT]\n  --server, -s                runs server (default: false) [$GPING_SERVER]\n  --cert value                TLS certificate file name [$GPING_CERT]\n  --key value                 private key file name [$GPING_KEY]\n  --clients-cert value        TLS clients certificate file name [$GPING_CLIENTS_CERT]\n  --ca-cert value             certificate file to verify the server [$GPING_CA_CERT]\n  --bind value, -b value      sets bind IP_ADDR:PORT [server] (default: \"0.0.0.0:3055\") [$GPING_BIND]\n  --privileged, -p            enables ICMP privileged mode [server] (default: false) [$GPING_PRIVILEGED]\n  --logs                      enables logging [server] (default: false) [$GPING_LOGS]\n  --help, -h                  show help (default: false)\n  --version, -v               print the version (default: false) \n```\n\nnote: server side supports unprivileged ICMP / UDP (default) and privileged ICMP / raw socket\n\nIf you use gping server in unprivileged mode, you need to run the below command on Linux:\n```\nsudo sysctl -w net.ipv4.ping_group_range=\"0   2147483647\"\n```\nin case of privileged ICMP (it enables w/ -p or -privileged) you should give the raw socket permission by the below or just run by superuser.\n```\nsudo setcap cap_net_raw+ep ./gping\n```\nfor more information about setcap cap_net_raw+ep: https://wiki.archlinux.org/index.php/Capabilities\n\n## Supported platform\n\n|                    | Client | Server |\n|--------------------| -------|--------|\n|Linux               | \u0026check;| \u0026check;| \n|macOS               | \u0026check;| \u0026check;| \n|FreeBSD             | \u0026check;| \u0026check;| \n|Windows             | \u0026check;|        | \n\n## Download gping v0.3.0 \nIn case you don't want to compile, the below binaries are available (compiled by Go 1.14.3)\n- [Linux](https://github.com/mehrdadrad/gping/releases/download/v0.3.0/gping-linux)\n- [macOS](https://github.com/mehrdadrad/gping/releases/download/v0.3.0/gping-macos)\n- [FreeBSD](https://github.com/mehrdadrad/gping/releases/download/v0.3.0/gping-freebsd)\n- [Windows](https://github.com/mehrdadrad/gping/releases/download/v0.3.0/gping.exe)\n\n## License\nThis project is licensed under MIT license. Please read the LICENSE file.\n\n\n## Contribute\nWelcomes any kind of contribution, please follow the next steps:\n\n- Fork the project on github.com.\n- Create a new branch.\n- Commit changes to the new branch.\n- Send a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehrdadrad%2Fgping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehrdadrad%2Fgping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehrdadrad%2Fgping/lists"}