Files
Luiz Angelo Daros de Luca a99b9f128d 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>
2019-03-19 00:27:57 +01:00

43 lines
995 B
Plaintext

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%'