https://github.com/zingerlittlebee/netop

Network Top -- Help you monitor network traffic with bpf

https://github.com/zingerlittlebee/netop

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.2%) to scientific vocabulary

Keywords

cli network rust terminal traffic

Keywords from Contributors

documents zsh-plugin communication
Last synced: 5 months ago · JSON representation

Repository

Network Top -- Help you monitor network traffic with bpf

Basic Info
Statistics
  • Stars: 243
  • Watchers: 2
  • Forks: 8
  • Open Issues: 11
  • Releases: 0
Topics
cli network rust terminal traffic
Created over 3 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License

README.md

Language : 🇺🇸 English | 🇨🇳 简体中文

netop

[![Docker Pulls](https://img.shields.io/docker/pulls/zingerbee/netop?style=flat-square)](https://hub.docker.com/r/zingerbee/netop) [![Docker Image Size](https://img.shields.io/docker/image-size/zingerbee/netop?style=flat-square)](https://hub.docker.com/r/zingerbee/netop/tags) [![Docker Image Version (latest by date)](https://img.shields.io/docker/v/zingerbee/netop?style=flat-square)](https://hub.docker.com/r/zingerbee/netop/tags)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ZingerLittleBee/netop/publish.yml?style=flat-square)](https://github.com/ZingerLittleBee/netop/actions) [![Last Commit](https://img.shields.io/github/last-commit/ZingerLittleBee/netop?style=flat-square)](https://github.com/ZingerLittleBee/netop/commits/main) [![LICENSE](https://img.shields.io/crates/l/netop?style=flat-square)](./LICENSE)

Overview

netop is a terminal command line interface that can customize the filter network traffic rule 🎯

Features

  • Use the bpf rule filter
  • Multi-rule switching
  • Real-time rate
  • Total traffic
  • Response UI
  • Resource occupation is small, rust Written
  • Support docker deployment

Installation

Docker

bash docker run -it --rm --net=host zingerbee/netop

Cargo

need rust and pcap, detail look at How to build ```bash

install

sudo cargo install netop

and then run

netop

or designated network interface card running

netop -n eth0 ```

NetBSD

On NetBSD there's an official package available. To install a pre-compiled binary, simply run bash pkgin install netop

Or, if you prefer to build it from source, bash cd /usr/pkgsrc/net/netop make install

Arch Linux

AUR

Thanks to @kemelzaidan for the contribution!

How to use

  • Press e to enter edit mode input bpf rule, and then press enter
  • Press Esc to exit edit mode
  • Use the <- or -> to switch between different rules
  • Not in edit mode, press dd to delete current rule
  • Not in edit mode, press q to quit

View help

```bash netop -h

docker

docker run -it --rm --net=host zingerbee/netop -h Output as follows bash netop 0.1.4

USAGE: netop [OPTIONS]

OPTIONS: -h, --help Print help information -n, --name Name of Network Interface Card -V, --version Print version information ```

Designated network interface card running

The parameter is name of network interface card

*unix: Use ifconfig to view network interface cards information

windows: Use ipconfig to view network interface cards information ```bash netop -n eth0

docker

docker run -it --rm --net=host zingerbee/netop -n eth0 ```

How to build from source

Development environment - It is best to be root user, pcap requires permissions - rust >= 1.40.0 - pcap - Ubuntu、Debian: apt install libpcap-dev - MacOS: installed by default - Windows: Download the WinPcap Developer's Pack. Add the /Lib or /Lib/x64 folder to your LIB environment variable.

```bash sudo cargo install --path .

or

sudo cargo run ```

Found an issue or have a proposal

Create an issue

Release Notes

SEE CHANGELOG

Owner

  • Name: 勤劳的小蜜蜂
  • Login: ZingerLittleBee
  • Kind: user

Coding in Rust, TypeScript & Flutter | Turning coffee into software magic | Building to bridge the gap between technology & humanity.

GitHub Events

Total
  • Issues event: 1
  • Watch event: 59
  • Push event: 25
  • Fork event: 1
Last Year
  • Issues event: 1
  • Watch event: 59
  • Push event: 25
  • Fork event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 78
  • Total Committers: 5
  • Avg Commits per committer: 15.6
  • Development Distribution Score (DDS): 0.436
Past Year
  • Commits: 2
  • Committers: 1
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
ZingerLittleBee 6****9@g****m 44
renovate[bot] 2****] 26
Renovate Bot b****t@r****m 5
pin v****n@p****m 2
kz6fittycent j****t@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 10
  • Total pull requests: 46
  • Average time to close issues: 6 days
  • Average time to close pull requests: about 1 month
  • Total issue authors: 8
  • Total pull request authors: 5
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.04
  • Merged pull requests: 36
  • Bot issues: 1
  • Bot pull requests: 41
Past Year
  • Issues: 2
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.5
  • Average comments per pull request: 1.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • 0323pin (2)
  • kemelzaidan (1)
  • Dominiquini (1)
  • ptarx (1)
  • namjul (1)
  • renovate[bot] (1)
  • auronandace (1)
  • HumanG33k (1)
Pull Request Authors
  • renovate[bot] (45)
  • ZingerLittleBee (2)
  • 0323pin (2)
  • dependabot[bot] (1)
  • kz6fittycent (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cargo 6,981 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
crates.io: netop

netop is a terminal command line interface that can customize the filter network traffic rule 🎯

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 6,981 Total
Rankings
Stargazers count: 12.6%
Forks count: 17.7%
Dependent repos count: 29.3%
Average: 33.0%
Dependent packages count: 33.8%
Downloads: 71.7%
Maintainers (1)
Last synced: 5 months ago

Dependencies

Cargo.lock cargo
  • aho-corasick 0.7.18
  • atty 0.2.14
  • autocfg 1.1.0
  • bitflags 1.3.2
  • cassowary 0.3.0
  • cc 1.0.73
  • cfg-if 1.0.0
  • chrono 0.4.19
  • clap 3.2.7
  • clap_derive 3.2.7
  • clap_lex 0.2.2
  • crossterm 0.23.2
  • crossterm_winapi 0.9.0
  • errno 0.2.8
  • errno-dragonfly 0.1.2
  • hashbrown 0.12.1
  • heck 0.4.0
  • hermit-abi 0.1.19
  • indexmap 1.9.0
  • libc 0.2.126
  • libloading 0.6.7
  • lock_api 0.4.7
  • log 0.4.17
  • memchr 2.5.0
  • mio 0.8.3
  • netraffic 0.1.0
  • num-integer 0.1.45
  • num-traits 0.2.15
  • once_cell 1.12.0
  • os_str_bytes 6.1.0
  • parking_lot 0.12.1
  • parking_lot_core 0.9.3
  • pcap 0.9.2
  • proc-macro-error 1.0.4
  • proc-macro-error-attr 1.0.4
  • proc-macro2 1.0.39
  • quote 1.0.18
  • redox_syscall 0.2.13
  • regex 1.5.6
  • regex-syntax 0.6.26
  • scopeguard 1.1.0
  • signal-hook 0.3.14
  • signal-hook-mio 0.2.3
  • signal-hook-registry 1.4.0
  • smallvec 1.8.0
  • strsim 0.10.0
  • syn 1.0.96
  • termcolor 1.1.3
  • textwrap 0.15.0
  • time 0.1.44
  • tui 0.18.0
  • unicode-ident 1.0.1
  • unicode-segmentation 1.9.0
  • unicode-width 0.1.9
  • version_check 0.9.4
  • wasi 0.10.0+wasi-snapshot-preview1
  • wasi 0.11.0+wasi-snapshot-preview1
  • widestring 0.2.2
  • winapi 0.3.9
  • winapi-i686-pc-windows-gnu 0.4.0
  • winapi-util 0.1.5
  • winapi-x86_64-pc-windows-gnu 0.4.0
  • windows-sys 0.36.1
  • windows_aarch64_msvc 0.36.1
  • windows_i686_gnu 0.36.1
  • windows_i686_msvc 0.36.1
  • windows_x86_64_gnu 0.36.1
  • windows_x86_64_msvc 0.36.1
Cargo.toml cargo
  • chrono 0.4
  • clap 3.2.7
  • crossterm 0.23
  • netraffic 0.1.0
  • tui 0.18
.github/workflows/docker.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v3 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/publish.yml actions
  • actions-rs/toolchain v1 composite
  • actions/checkout v3 composite
.github/workflows/rust-clippy.yml actions
  • actions-rs/toolchain 16499b5e05bf2e26879000db0c1d13f7e13fa3af composite
  • actions/checkout v3 composite
  • github/codeql-action/upload-sarif v2 composite
deploy/Dockerfile docker
  • debian bullseye-slim build
  • rust bullseye build