Snmpget wrote:
> Helo,
> I have a 4096Kbit / 1024Kbit (Download / Upload). I have about 100
> users connected to my firewall. I would like to shape all traffic, and
> I think about one queue per user with bandwidth limit and priority, so
> I created about 200 queues (100 per upload and 100 per download).
> Below is a only scrap of my configuration.
> 
> - tcdevices
> eth0          100000kbit      100000kbit    #LAN
> eth1          4000kbit        900kbit         #WAN
> 
> - tcclasses
> #INTERFACE      MARK            RATE            CEIL   PRIORITY        OPTIONS
> eth1            101             128kbit         512kbit         4
> eth0            101             512kbit         2048kbit       4
> 
> - tcrules
> 101     eth0:192.168.0.101/32   0.0.0.0/0       all     -
> 101:F   eth1:0.0.0.0/0  192.168.0.101/32        all     -
> 
> 
> Do You think it is a good idea to shape traffic with this kind of
> limitations?

No.

a) There is nothing wrong with a single user using all available
bandwidth if that user is the only one using the network.

b) What I prefer is to assign priorities, guarantees and maximums based
on the TYPE of traffic (web, mail, p2p, etc) rather than by IP address.
It scales *much* better.

c) In addition to HTB, Shorewall configures each interface to use SFQ
which guarantees fairness among traffic with the same priority. So one
user can't monopolize the traffic if you take my approach.

d) What you are doing is a pain to set up and configure and forces each
packet through your firewall to pass through 200 rules! In the xtables
addons, there is an IPMARK target which will do what you are doing in a
single rule; but you would need to use it out of a Shorewall extension
script.

e) You have 100 users which you are guaranteeing 128kbit each for
upload. So your total outgoing guarantee on eth1 is > 12800kbit even
though the total capacity of the link is only 900kbit. So your
configuration will work miserably.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to