SHARE
TWEET

Untitled

a guest Jun 18th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tc qdisc add dev eth0 root handle 1: htb default 12
  2. tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit ceil 100mbit
  3. # Here, you want a fair qdisc
  4. tc qdisc add dev eth0 parent 1:1 handle 101: sfq perturb 10
  5. # Put a range in the filter
  6. tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 192.168.1.0/24 flowid 1:1
  7. # Create 254 bucket, each ip src will be attached to one bucket
  8. tc filter add dev eth0 parent 1:1 protocol ip handle 10 flow hash keys nfct-src divisor 254
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top