Crates.io | tcpdrop |
lib.rs | tcpdrop |
version | 0.1.0 |
source | src |
created_at | 2023-10-10 10:52:00.830029 |
updated_at | 2023-10-10 10:52:00.830029 |
description | Export IPv4 and IPv6 TCP table |
homepage | https://github.com/ynuwenhof/tcpdrop |
repository | https://github.com/ynuwenhof/tcpdrop |
max_upload_size | |
id | 998997 |
size | 34,817 |
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: