NetKraken is a Network connectivity tester inspired by nc, ncat and the netcats
of the world.
- Rapidly prove which of the trinity of evil (Network/Firewall/DNS) is causing connectivity issues
- Async all the things for massive concurrency
- Cross platform support, with Windows as a first class citizen
- TCP/UDP Client/Server
- HTTP Client
- DNS Client
- ICMP Client
- Asynchronous servers allowing for large amounts of client connections
- Asynchronous clients allow for simultaneous connections to multiple destinations
- HTTP Server
- TCP/UDP traceroute
- Latency, Jitter, Bandwidth measurement
Install the package for your system from the github release page here
nk --help
NetKraken - Cross platform network connectivity tester
Usage: nk <COMMAND>
Commands:
config Generate a NetKraken config
dns DNS connection
http HTTP connection
https HTTPS connection
icmp ICMP connection
tcp TCP connection
udp UDP connection
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
On linux, the ICMP client needs to either run as sudo or, the nk binary
needs cap_net_raw permissions, which allows it create raw sockets.
This will allow regular users to use the ICMP client without using sudo.
sudo setcap cap_net_raw=ep /path/to/nk
cap_net_raw- The capability that allows sending raw network packets.ep- The capability is in the effective and permitted sets.
If not, you will get the following error:
Operation not permitted (os error 1)
You can check the current permissions with the following command:
getcap /path/to/nk
Using ncat as a server.
ncat -l -k -v 127.0.0.1 8080 --sh-exec "echo ''"
ncat -l -u -k -v 127.0.0.1 8080 --sh-exec "echo ''"