shinobu/router: Add qdisc for guest network
This commit is contained in:
parent
4611e12772
commit
ef62aac941
|
@ -60,7 +60,7 @@ in
|
||||||
# default
|
# default
|
||||||
{
|
{
|
||||||
minor = 2;
|
minor = 2;
|
||||||
rate = "1000kbit";
|
rate = "800kbit";
|
||||||
prio = 50;
|
prio = 50;
|
||||||
}
|
}
|
||||||
# DNS, small packets (e.g., TCP ACK)
|
# DNS, small packets (e.g., TCP ACK)
|
||||||
|
@ -110,6 +110,13 @@ in
|
||||||
ceil = "3000kbit";
|
ceil = "3000kbit";
|
||||||
prio = 90;
|
prio = 90;
|
||||||
}
|
}
|
||||||
|
# guest
|
||||||
|
{
|
||||||
|
minor = 10;
|
||||||
|
rate = "200kbit";
|
||||||
|
ceil = "2000kbit";
|
||||||
|
prio = 99;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,8 @@ table inet tc {
|
||||||
}
|
}
|
||||||
|
|
||||||
chain common {
|
chain common {
|
||||||
|
iifname "br-guest" meta priority set 1:a counter return comment "guest network"
|
||||||
|
|
||||||
meta l4proto tcp meta length 1-64 meta priority set 1:3 counter return comment "small tcp packets"
|
meta l4proto tcp meta length 1-64 meta priority set 1:3 counter return comment "small tcp packets"
|
||||||
|
|
||||||
tcp dport 22 ip dscp af21 meta priority set 1:4 counter return comment "interactive SSH (4)"
|
tcp dport 22 ip dscp af21 meta priority set 1:4 counter return comment "interactive SSH (4)"
|
||||||
|
|
Loading…
Reference in a new issue