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

netop

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

Overview

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

Features

How to use

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

View help

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

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 docker run -it --rm --net=host zingerbee/netop -n eth0

How to build

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 ```