tcpdrop

Crates.iotcpdrop
lib.rstcpdrop
version0.1.0
sourcesrc
created_at2023-10-10 10:52:00.830029
updated_at2023-10-10 10:52:00.830029
descriptionExport IPv4 and IPv6 TCP table
homepagehttps://github.com/ynuwenhof/tcpdrop
repositoryhttps://github.com/ynuwenhof/tcpdrop
max_upload_size
id998997
size34,817
Yannic Nuwenhof (ynuwenhof)

documentation

README

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:

Commit count: 20

cargo fmt