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>