The following is the GNU All-permissive License as recommended in

Copyright (C) 2024 Free Software Foundation

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

Contributions are welcome. See


Netcat can be used to scan a port without nmap. For instance:

# 5 second timeout on port 161
$ nc -vz -w 5 161
nc: connect to ( port 161 (tcp) timed out: Operation now in progress
nc: connect to (2001:470:142:5::223) port 161 (tcp) failed: Network is unreachable

Some people consider having netcat installed to be a security risk, because it can be used to listen to and make TCP connections. However that is not the biggest part of our attack surface. It might make sense not to install it in a container though.