mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 23:48:39 +01:00
trafficshaper: new package
trafficshaper create QoS rules to limit (or reserve) traffic used by classes of clients. Uplink and downlink can be controled (or not controlled) independently. Client classes are defined by its network addresses (IPv4 or IPv6). Each client class can define absolute or relative (to wan) bandwith, and also the use (or not) of spare wan bandwidth when avaiable. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
This commit is contained in:
committed by
Paul Spooren
parent
05cb8878f5
commit
a99b9f128d
@@ -0,0 +1,42 @@
|
||||
package trafficshaper
|
||||
|
||||
config globals 'globals'
|
||||
option mark_mask '0xFF'
|
||||
|
||||
config wan 'wan'
|
||||
option downlink '20000'
|
||||
option uplink '20000'
|
||||
|
||||
config wan 'wanb'
|
||||
option downlink '15000'
|
||||
option uplink '5000'
|
||||
|
||||
config class 'corp'
|
||||
list network '192.168.1.0/24'
|
||||
list network 'fdc8:1234:1234:1::/64'
|
||||
option reserved_downlink '50%'
|
||||
option reserved_uplink '35%'
|
||||
option allowed_downlink '100%'
|
||||
option allowed_uplink '100%'
|
||||
|
||||
config class 'vpn'
|
||||
list network '192.168.2.0/24'
|
||||
list network 'fdc8:1234:1234:2::/64'
|
||||
option reserved_downlink '25%'
|
||||
option reserved_uplink '50%'
|
||||
option allowed_downlink '100%'
|
||||
option allowed_uplink '100%'
|
||||
|
||||
config class 'guest'
|
||||
list network '192.168.3.0/24'
|
||||
list network 'fdc8:1234:1234:3::/64'
|
||||
option reserved_downlink '25%'
|
||||
option reserved_uplink '15%'
|
||||
option allowed_downlink '25%'
|
||||
option allowed_uplink '15%'
|
||||
|
||||
config class 'default'
|
||||
option reserved_downlink '1000'
|
||||
option reserved_uplink '1000'
|
||||
option allowed_downlink '100%'
|
||||
option allowed_uplink '100%'
|
||||
Reference in New Issue
Block a user