forked from sandia-minimega/minimega
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support TCP and UDP connectivity testing from miniccc (sandia-minimeg…
…a#1457) minimega, miniccc, and ron were updated to support executing tcp/udp connectivity tests directly from miniccc agents. ron was updated to include a new `ConnTest` command struct that encapsulates the endpoint to test against, how long to wait, and what UDP packet to send (if necessary). miniccc was updated to include a handler for the new `ConnTest` command that simply tries to dial the endpoint (in the case of TCP), and if necessary write the UDP packet to the socket (in the case of UDP). minimega was updated to include support for a new "cc test-conn" command, as well as adding a "connectivity" column to the "cc commands" table. Documentation for minimega's "cc" command was also updated to include details and examples of how to use the new "test-conn" command. "cc test-conn" allows users to test network connectivity from a guest to the given IP or domain name and port. The wait timeout should be specified as a Go duration string (e.g. 5s, 1m). If "udp" is used, a "base64 udp packet" that will generate a valid response must be specified. Results of the test will be written to the command's STDOUT file, whether it passed or failed. An example test is as follows: cc test-conn tcp 10.0.0.68 443 wait 10s
- Loading branch information
1 parent
dd04c33
commit cb60299
Showing
3 changed files
with
137 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters