We have say 4 users in a private network connected to the Internet trough a Linux router with a public IP address that is doing network address translation (NAT). I have to configure QoS to give access to the users to Internet but with throttled bandwidth for 2 users while for others no limitations.
eth0:121.51.26.35
eth1:10.239.107.1
eth0 of Linux Router is a 10Mbps link. eth1 is connected to switch and 4 nodes are connected to the switch.
I want configure tc to throttle bandwidth of 2 nodes only i.e. a group of users (XyZ in picture) to use only 3Mbps cumulatively. (When 1 user will be downloading/uploading, he/she must get 3Mbps but when 3 users are downloading/uploading simultaneously they must receive 1MBps )
First please let me know is the requirement achievable, if yes how shall I proceed?
Below is the topology
