netop-0.1.3 is not a library.
Language : 🇺🇸 English | 🇨🇳 简体中文
Overview
netop is a terminal command line interface that can customize the filter network traffic rule 🎯
Features
- Use the
bpfrule filter - Multi-rule switching
- Real-time rate
- Total traffic
- Response UI
- Resource occupation is small,
rustWritten - Support
dockerdeployment
Installation
Docker
Cargo
need rust and pcap, detail look at How to build
# install
# and then run
# or designated network interface card running
NetBSD
On NetBSD there's an official package available. To install a pre-compiled binary, simply run
Or, if you prefer to build it from source,
How to use
- Press
eto enter edit mode input bpf rule, and then pressenter - Press
Escto exit edit mode - Use the
<-or->to switch between different rules - Not in edit mode, press
ddto delete current rule - Not in edit mode, press
qto quit
View help
# docker
Output as follows
Designated network interface card running
The parameter is name of network interface card
*unix: Use
ifconfigto view network interface cards informationwindows: Use
ipconfigto view network interface cards information
# docker
How to build from source
Development environment
- It is best to be
rootuser,pcaprequires permissions rust>= 1.40.0pcap- 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.
- Ubuntu、Debian:
# or
Found an issue or have a proposal
Release Notes
SEE CHANGELOG