Nft-qos rate limiting problem, maybe?

So, I was experimenting with NFT-QOS package...
I set up a static limit for my smartphone's IP local address.
If I do a speedtest.net rate test from my phone, the speed limit is correct. But if I transfer any file via FTP to my computer using the lan, It wont limit the speed.
Is this beheavior correct, according to my config file? Or nft-qos is failing?

config download
 	option unit 'kbytes'
 	option hostname 'Este dispositivo (192.168.2.208)'
 	option rate '250'
 	option ipaddr '192.168.2.208'
config upload
 	option unit 'kbytes'
 	option hostname 'Este dispositivo (192.168.2.208)'
 	option rate '250'
 	option ipaddr '192.168.2.208'

Can you share the content in /tmp/qos.nft?

this is the contenc of that file:

table inet nft-qos-static {
	chain upload {
		type filter hook prerouting priority 0; policy accept;
		ip saddr 192.168.2.208 limit rate over 250 kbytes/second drop
	}
	chain download {
		type filter hook postrouting priority 0; policy accept;
		ip daddr 192.168.2.208 limit rate over 250 kbytes/second drop
	}
}


1 Like

Pretty sure it only limits routed traffic and this is normal.

2 Likes

oh! I see. So, If I want to rate limit the traffic inside the Lan, this isn't the way? How can I do that?

Do you have an all in one device or multiple switches and access points?

Only one device. Look, I was trying to do this. I want to limit all traffic to my phone (as an example, on the left). This includes traffic from outside (internet) and Local area traffic. My ISP router is there only so I can connect to the outside world haha