[ previous ] [ next ] [ threads ]
 
 From:  Justin Ellison <justin at techadvise dot com>
 To:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  Patches
 Date:  Sun, 23 May 2004 18:36:00 -0500
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
testers.

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
-- 
Justin Ellison <justin at techadvise dot com>
firewall_shaper_magic.php (15.7 KB, application/x-php)
magic_shaper.patch (7.4 KB, text/x-patch)
signature.asc (0.2 KB, application/pgp-signature)