[ previous ] [ next ] [ threads ]
 From:  "Michael Mee" <mm2001 at pobox dot com>
 To:  <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  Re: [m0n0wall-dev] Patches
 Date:  Sat, 29 May 2004 12:34:07 -0700
Manuel, do you any interest in picking up these "Magic Shaper" patches
(below), or similar?

Given the recurring questions, It would be great to have some pre-configured
tweaks like this to automatically configure the traffic shaper for common
scenarios (starting with this one :->).

Justin, thanks for all your work on this!

cheers, michael

----- Original Message ----- 
From: "Justin Ellison" <justin at techadvise dot com>
To: <m0n0wall dash dev at lists dot m0n0 dot ch>
Sent: Sunday, May 23, 2004 4:36 PM
Subject: [m0n0wall-dev] Patches

Hi all,

Well, I'm smoked.  I've never used FreeBSD more than tinkering, and I
haven't played with PHP much as of late (more Linux and Perl).  m0n0wall
rocks, and has peaked my interest in FreeBSD.

Anyways, I posted a VPN patch on Friday to fix a problem that very few
people will likely run into, but I posted it to the wrong list.  Are the
devs on the user list as well?  If not, I'll repost the VPN patch.

I had been looking for a way to automatically setup the traffic shaper,
and couldn't find anything in the webGUI.  A conversation struck up on
the user list about WonderShaper for Linux.  Well, what better way to
learn a little FreeBSD and ipfw than to implement my "Magic Shaper".

To make it work I had to add Type of Service matching to the
firewall_rules_edit page.  This was a very quick hack, and if there are
going to be problems, it may be right there.

My mind is fried.  I tried to work out all the bugs myself, and I
tinkered with it a little, made sure that it works, and it does indeed
improve performance on my 1.5Mbit/128Kbit cable modem.  Now I need some

Apply the patches, copy firewall_shaper_magic.php to the webdocs
directory, and go to the Traffic shaper.  There is a new "Magic" tab -
it's really self explanatory.

Bugs/Caveats:  Enabling/Disabling the magic shaper will eat all of your
shaping queues/pipes/rules, not just the ones it has created.  I can fix
it, but I want to make sure it works first.

Again, it's been awhile since I've done PHP, any comments/flames on my
coding etiquette are welcome.

Justin Ellison <justin at techadvise dot com>