mangle+queue tree: if I...

I have a gateway with one public ethernet and one private ethernet.

This gateway act also as pppoe server for my users.
I have no nat, all users have their public ip.
I have some problems to identify download traffic, I suppose because of pppoe tunnels.

…if I:

  1. in mangle create two new chains: ch_upload and ch_download, using the address list of my users ip and forward chain;
  2. i mangle separated traffic in ch_upload and ch_download, creating separate packet marks (i.e. http_up, http_down)
  3. i use two main queue tree parents of global-out, each one with yours sub-queues filterings in_ and out_ packets

do you think I can queue all kind of traffic ?

Is an efficient solution or there is another well known way ?

thanks

Do you want to share bandwidth according to you Download/Upload Plan.

For e.g. Suppose Max_Download/Upload limit is 10 Mbps. So when 100 Users are there, they can get 100 K bandwidth if the users decreases to 50 then can use bandwidth upto 200K. Similarly when users decreases to 10 then they can get bandwidth upto 1 Mbps.