Crates.io | netop |
lib.rs | netop |
version | 0.1.4 |
source | src |
created_at | 2022-06-18 06:19:36.103634 |
updated_at | 2023-12-18 04:52:13.125554 |
description | netop is a terminal command line interface that can customize the filter network traffic rule 🎯 |
homepage | https://github.com/ZingerLittleBee/netop |
repository | https://github.com/ZingerLittleBee/netop |
max_upload_size | |
id | 608393 |
size | 55,975 |
Language : 🇺🇸 English | 🇨🇳 简体中文
netop
is a terminal command line interface that can customize the filter network traffic rule 🎯
bpf
rule filterrust
Writtendocker
deploymentdocker run -it --rm --net=host zingerbee/netop
need rust
and pcap
, detail look at How to build
# install
sudo cargo install netop
# and then run
netop
# or designated network interface card running
netop -n eth0
On NetBSD there's an official package available. To install a pre-compiled binary, simply run
pkgin install netop
Or, if you prefer to build it from source,
cd /usr/pkgsrc/net/netop
make install
e
to enter edit mode input bpf rule, and then press enter
Esc
to exit edit mode<-
or ->
to switch between different rulesdd
to delete current ruleq
to quitnetop -h
# docker
docker run -it --rm --net=host zingerbee/netop -h
Output as follows
netop 0.1.4
USAGE:
netop [OPTIONS]
OPTIONS:
-h, --help Print help information
-n, --name <NAME> Name of Network Interface Card
-V, --version Print version information
The parameter is name of network interface card
*unix: Use
ifconfig
to view network interface cards informationwindows: Use
ipconfig
to view network interface cards information
netop -n eth0
# docker
docker run -it --rm --net=host zingerbee/netop -n eth0
Development environment
root
user, pcap
requires permissionsrust
>= 1.40.0pcap
apt install libpcap-dev
sudo cargo install --path .
# or
sudo cargo run
SEE CHANGELOG