forked from spinesystemspublic/documentation
Update PPPOE_shaper.md
This commit is contained in:
@@ -421,4 +421,25 @@ First line will create ipset named bypass with hash:net type, which is used to s
|
|||||||
Second line will read file /etc/speedtest.txt and add each ip to ipset bypass with skbmark 0x15. You can change 0x15 to any other value. This file should contain list of ips, one per line.
|
Second line will read file /etc/speedtest.txt and add each ip to ipset bypass with skbmark 0x15. You can change 0x15 to any other value. This file should contain list of ips, one per line.
|
||||||
Third line will add iptables rule to match all packets with source ip in ipset bypass and set skbmark to 0x15.
|
Third line will add iptables rule to match all packets with source ip in ipset bypass and set skbmark to 0x15.
|
||||||
|
|
||||||
|
## Upload shaper
|
||||||
|
|
||||||
|
Settings in burst2d.cfg:
|
||||||
|
|
||||||
|
`upload_shaper=0` unlimited upload
|
||||||
|
`upload_shaper=1` upload set as in radius
|
||||||
|
|
||||||
|
### Verifying upload shaper
|
||||||
|
|
||||||
|
`tc -s -d filter show dev pppX ingress`
|
||||||
|
|
||||||
|
```
|
||||||
|
filter parent ffff: protocol all pref 49152 u32 chain 0
|
||||||
|
filter parent ffff: protocol all pref 49152 u32 chain 0 fh 800: ht divisor 1
|
||||||
|
filter parent ffff: protocol all pref 49152 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 terminal flowid not_in_hw (rule hit 29 success 29)
|
||||||
|
match 00000000/00000000 at 0 (success 29 )
|
||||||
|
police 0x3 rate 20Mbit burst 10000Kb mtu 65000b action drop overhead 0b linklayer ethernet
|
||||||
|
ref 1 bind 1 installed 867 sec used 0 sec firstused 840 sec
|
||||||
|
|
||||||
|
Sent 4640 bytes 29 pkts (dropped 0, overlimits 0)
|
||||||
|
```
|
||||||
|
As you can see it is set to 20Mbit with burstability in bucket to 10Mbyte.
|
||||||
|
|||||||
Reference in New Issue
Block a user