Skip to content

Export IPv4 and IPv6 TCP table

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

ynuwenhof/tcpdrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Export IPv4 and IPv6 TCP table

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages