1 unstable release
0.1.0 | Oct 10, 2023 |
---|
#52 in #ipv6
12KB
183 lines
Tcpdrop
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"
}
]
Installation
Cargo
Make sure the current stable release of Rust is installed.
Registry
cargo install tcpdrop
Manual
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.
Configuration
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 |
License
This project is licensed under either of the following licenses, at your option:
Dependencies
~137MB
~2M SLoC