FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

frapank/NetLatencyInjector: A small Rust tool to inject artificial network delay using tc netem on Linux. Useful for testing, debugging, or trolling yourself. · GitHub

Latest commit

 

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetLatencyInjector

Lagger is a lightweight Linux utility for injecting artificial network latency using tc netem. Designed for developers, testers, or anyone curious about how their apps behave under lag, it provides an intuitive terminal interface for applying and monitoring delay on any network interface.

Features

  • Add custom network delay in milliseconds per interface
  • View current delay status of all interfaces at a glance
  • Vim-style keyboard navigation
  • Simple TUI built in Rust with ratatui

Prerequisites

  • Linux system with tc (from the iproute2 package)
  • sudo privileges
  • Rust toolchain (stable)

Installation

# Clone the repository
git clone https://github.com/ItalianG0urmet/NetLatencyInjector.git
cd NetLatencyInjector

# Build the project
cargo build --release

# Run the tool (requires sudo for tc commands)
sudo ./target/release/lagger
sudo ./target/release/NetLatencyInjector

Usage

Key Action
j / k Move selection down / up
Enter Open delay input for selected interface
Esc Close input without applying
q Quit

Select an interface, press Enter, type the desired delay in milliseconds, and confirm with Enter again. The current delay for each interface is shown inline next to its name.

Example commands used internally

Lagger internally wraps standard tc commands like:

tc qdisc replace dev <iface> root netem delay 100ms
tc qdisc show dev <iface>

About

A small Rust tool to inject artificial network delay using tc netem on Linux. Useful for testing, debugging, or trolling yourself.

Topics

Resources

Stars

17 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages


Back | FazBrowse Home | New Git URL