Skip to contentSkip to conversation

[LARTC]

LARTC [email protected] 1 participant 1 message Sep 8, 2006

lore
Share & tools
lore
#0 lore raw

Hello!

I need assistance to solve my problem related to traffic shaping based on the user ids.

The problem: each unix user (of the linux host) has to be limited with incoming channel (internet) bandwidth.

Solution I want to implement:

                                  ____________ 
unix user1 <-> IP1 \             |            |
       ....          <---------> | gw IP, NAT |<-----> eth interface 
unix userN <-> IPN /     ^       |____________|

|
|_____ traffic shaper is here

Each unix user sents and receives network data through dedicated IP address (which belongs to one of the aliases of the localhost interface - lo:1, lo:2 etc). All IP addresses are in the same network (for example, 192.168.5.0). One of localhost aliases acts as a gateway (192.168.5.1, for example). And to send and receive data to the actual network, (S)NAT is required.

To shape the traffic, linux traffic shaper (CBQ) is used.

It seems to me, this scheme looks good and real (in my case, the quantity of simultaniously connected users is less than 50). Am I right?

But can anybody give me an advice how to implement it ? :-)

Problems were appeared at my first step:

As first step, I've tried to construct the "virtual network" IP1..IPN and gw IP:

# ifconfig lo:1 inet 192.168.5.1 up

And immediately after executing this command it is possible to ping any 192.168.5.x IP address, not only 192.168.5.1 (as I've expected). Why??? What is the problem?

Thank you beforehand!

Signature · 6 lines
Sincerely yours, Vitaly Repin
Ice Brains Software, ltd
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc