ntap
Network traffic monitor/analyzer, with CLI/TUI. Network traffic monitor/analyzer, for Linux, macOS, and Windows. ntap provides comprehensive insights into your network’s activity, enabling users to monitor traffic, manage connections, and view network configurations with ease. See usage You can download archives of precompiled binaries from the releases Or you can use binstall for install ntap from github release. First, clone the repository: Then, build the project: The following post-install configuration steps are applicable to both the CLI version ( Granting capabilities to the Assign necessary capabilities to the Run For environments with multiple users, requiring privilege escalation each time On macOS, managing access to the Berkeley Packet Filter (BPF) devices is necessary for Install prebuilt binaries via shell script Install prebuilt binaries via Homebrew View on GitHub
Overview
Features
Usage
Prerequisites
Installation
Install prebuilt binaries via shell script
|
Install prebuilt binaries via powershell script
|
From Releases
Using Cargo
Build from source
git clone https://github.com/shellrow/ntap
cd ntap
cargo build --release
./target/release/ntap
Post-Install Configuration
ntap
) and the desktop application (ntap-desktop
).
These steps ensure that ntap
has the necessary permissions and environment setup to function correctly on different operating systems. Post-Install (Linux)
ntap
requires elevated privileges to monitor network packets effectively. On Linux, you can configure these privileges using two main methods: 1. Using
setcap
ntap
binary allows it to operate with the necessary privileges without requiring sudo
for each execution.
This method is recommended for single-user machines or in environments where all users are trusted.ntap
binary
ntap
as an unprivileged user:
Capabilities Explained:
cap_sys_ptrace,cap_dac_read_search
: Allows ntap
to access /proc/<pid>/fd/
to identify which open port belongs to which process.cap_net_raw,cap_net_admin
: Enables packet capturing capabilities. 2. Using
sudo
(for multi-user environments)ntap
is run can enhance security.sudo ntap
Post-Install (macOS)
ntap
to monitor network traffic: Install
chmod-bpf
to automatically manage permissions for BPF devices:curl --proto '=https' --tlsv1.2 -LsSf https://github.com/shellrow/chmod-bpf/releases/latest/download/chmod-bpf-installer.sh | sh
Check BPF device permissions
chmod-bpf check
Install the chmod-bpf daemon to automatically manage BPF device permissions
sudo chmod-bpf install
Post-Install (Windows)
License
ntap
is released under the MIT License. See the LICENSE file for more details.