i have a 50/5 Mbps VDSL (primitive) connection at home and i would like to make the most, as i have many friends and guests using it. I am trying to use the QoS over Nftables, but i would like some help to optimize it. All families devices get a static IP in the LAN and the LAN subnet is 192.168.160.0/24.
I would like all dhcp clients, that do not get a static IP to get an IP from the pool 192.168.160.160/27 (.161-.190 IPs) and all of them share 10/1 Mbps.
here is my config of /etc/config/nft-qos.
config default 'default'
option limit_mac_enable '0'
option priority_enable '0'
option limit_enable '1'
option limit_type 'static'
option static_unit_dl 'kbytes'
option static_unit_ul 'kbytes'
option static_rate_dl '50000'
option static_rate_ul '50000'
list limit_whitelist '192.168.160.240'
list limit_whitelist '192.168.160.241'
list limit_whitelist '192.168.160.242'
list limit_whitelist '192.168.160.243'
list limit_whitelist '192.168.160.244'
list limit_whitelist '192.168.160.245'
list limit_whitelist '192.168.160.246'
list limit_whitelist '192.168.160.247'
list limit_whitelist '192.168.160.248'
list limit_whitelist '192.168.160.249'
list limit_whitelist '192.168.160.250'
config download
option unit 'kbytes'
option hostname 'DHCP_10M'
option ipaddr '192.168.160.160/27'
option rate '1100'
config download
option unit 'kbytes'
option hostname 'Zach_Mobile'
option ipaddr '192.168.160.238'
option rate '1280'
config download
option unit 'kbytes'
option hostname 'TV_Box_1'
option ipaddr '192.168.160.237'
option rate '5000'
config download
option unit 'kbytes'
option hostname 'TV_Box_1'
option ipaddr '192.168.160.236'
option rate '5000'
config download
option unit 'kbytes'
option hostname 'Helen_Mobile'
option ipaddr '192.168.160.234'
option rate '1280'
config download
option rate '50000'
option unit 'kbytes'
option hostname 'RPI_VPN'
option ipaddr '192.168.160.251'
config upload
option unit 'kbytes'
option hostname 'DHCP_1M'
option ipaddr '192.168.160.160/27'
option rate '110'
config upload
option unit 'kbytes'
option hostname 'Zach_Mobile'
option ipaddr '192.168.160.238'
option rate '128'
config upload
option unit 'kbytes'
option hostname 'TV_Box_1'
option ipaddr '192.168.160.237'
option rate '250'
config upload
option unit 'kbytes'
option hostname 'TV_Box_1'
option ipaddr '192.168.160.236'
option rate '250'
config upload
option unit 'kbytes'
option hostname 'Helen_Mobile'
option ipaddr '192.168.160.234'
option rate '128'
config download
option unit 'kbytes'
option hostname 'Anthony_Mobile'
option ipaddr '192.168.160.232'
option rate '1280'
config upload
option unit 'kbytes'
option hostname 'RPI_VPN'
option ipaddr '192.168.160.251'
option rate '128'
config download
option hostname 'undefined'
option rate '50000'
option unit 'kbytes'
config upload
option unit 'kbytes'
option hostname 'Anthony_Mobile'
option ipaddr '192.168.160.232'
option rate '128'
the entries in the range 192.168.160.23X will have certain bandwidth each one.
the entries in the whitelist section should get the max bandwidth.
i would like to ask if have something wrong or anything that could get optimised.