How To Get The Most Out Of Dummynet
An anonymous reader writes "BSDVault has published a tutorial on using dummynet to weight and queue traffic based on classes and type of service. The tutorial is called 'IPFW NAT firewall with WF2Q+ (Worst-case Fair Weighted Fair Queuing) Policy' and details how to add queuing and priority to the traffic flowing in and out of your network. There is also an example script to get you started in writing your own rules with plenty of self explanatory configurations that you should find very useful for getting a similar config up and working. If you are into this kind of thing a worthy read ... "
I only started doing it as a way to learn how to do it.
I began with a working ipfw/natd firewall script and added in the dummynet stuff... Funny how if the wife is holding out, I can restrict her bandwidth with a few clicks. Netsurfing at 14400bps is the pits... but it worked... that's another story.
Then I saw queues... and what kind of power they had. I realize I'm only scratching the surface of using queues with DUMMYNET, but I wanted some flexibility of which ports I could prioritize and I didn't want to rewrite a fixed script every time.
The result is at http://bsdvault.net. The beauty of my script is that it doesn't limit the user to a fixed number of queues. Luigi Rizzo seems to think thousands of queues are possible with a very minimal performance hit.
potentially I could modify the script to limit certain ports at certain bandwidths... I am only scratching the surface.
Enjoy!
smn
GPG Key 0xD869AB48
take a look at the howto on http://www.ezunix.org 's freebsd section - it contains a slightly more understandable example
For doing more sophisticated work look into altq.
r e. html#ALTQ
http://www.csl.sony.co.jp/person/kjc/kjc/softwa