GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rust-net/limit: 流量超出限制自动关机

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

limit

流量超出限制自动关机

install

# show interfaces
sudo docker run --rm -it --name="test" --net="host" imgxx/limit

# help
sudo docker run --rm -it --name="test" --net="host" imgxx/limit -h

# run
sudo docker run -itd --name="limit" --restart="always" --net="host" -v limit:/limit -v /:/host imgxx/limit -i enp3s0 -l 100G
sudo docker logs -f limit

dev

cargo run -- -i enp3s0 -l 1G

docker:

cargo build --target x86_64-unknown-linux-musl
cargo build --target aarch64-unknown-linux-musl

# docker-compose
sudo docker-compose down && sudo docker-compose up --build

# docker
sudo docker build -t limit .
sudo docker run --rm -it --name test --net host -v limit:/limit -v /:/host limit -i enp3s0 -l 1G
sudo docker rm -f test

About

流量超出限制自动关机

hub.docker.com/r/imgxx/limit

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.