spogulis no https://github.com/balkian/pingish
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
de74385715 | pirms 5 gadiem | |
---|---|---|
Dockerfile | pirms 5 gadiem | |
Makefile | pirms 5 gadiem | |
README.md | pirms 5 gadiem | |
go.mod | pirms 6 gadiem | |
go.sum | pirms 6 gadiem | |
main.go | pirms 5 gadiem | |
pingish | pirms 6 gadiem |
README.md
Stupidly simple command line tool to resolve and ping hostnames.
I just use the binary to troubleshoot connectivity issues in scratch/alpine containers that don't have ping/dig/curl/wget. Just copy the binary to the container, and problem solved.
The binary has to be built with CGO_ENABLED=0
to avoid problems with alpine-based images.
Example of use:
pingish www.google.es
Server
You can start a server that will accept requests on /ping?host=<target>
, using the --server
flag. e.g.
pingish --server
TROUBLESHOOTING
To run it as a normal user in ubuntu, you might need to configure your host first: sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
And/or set the capabilities of the binary: sudo setcap cap_net_raw=ep pingish