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 February 25, 2020 04:48 — 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.0.7"
# Interface connect to out lan
INTERFACE="eth0"
# Interface virtual for incomming traffic
VIRTUAL="ifb0"
# Try to skip reset
CHANGE=0
# set the direction (1 = outgoing only, 2 = incoming only 3 = both)