Skip to content

Instantly share code, notes, and snippets.

View guangmuzhu's full-sized avatar
👻
Let's move!

Cambda Zhu guangmuzhu

👻
Let's move!
View GitHub Profile
@guangmuzhu
guangmuzhu / traffic-control.sh
Last active September 9, 2025 02:14 — forked from ole1986/traffic-control.sh
Traffic control script for incoming and outgoing packages using TC (on a specific ip address)
#!/bin/bash
VERSION="1.2.3"
INTERFACE="eth0"
VIRTUAL="ifb0"
CHANGE=0
DIRECTION=3
SPEED_DOWNLOAD="10mbit"
SPEED_UPLOAD="10mbit"
LIMIT=10