Export IPv4 and IPv6 TCP table.
[
{
"state": "Listen",
"local": "0.0.0.0:34560",
"remote": "0.0.0.0:0"
},
{
"state": "Listen",
"local": "[::]:34560",
"remote": "[::]:0"
}
]
Make sure the current stable release of Rust is installed.
cargo install tcpdrop
git clone https://github.com/ynuwenhof/tcpdrop.git
cd tcpdrop
cargo install --path .
After installing, you can run the application with:
tcpdrop --pretty
this will print the TCP table into the terminal.
Tcpdrop can be configured via environment variables or command line arguments.
Missing keys will fall back to their default value.
Key | Description | Default |
---|---|---|
TCPDROP_PRETTY |
Print the TCP table in a pretty JSON format | false |
TCPDROP_NO_V4 |
Don't export IPv4 connections | false |
TCPDROP_NO_V6 |
Don't export IPv6 connections | false |
TCPDROP_OUTPUT |
Output file path | None |
This project is licensed under either of the following licenses, at your option: