Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

merlyn (47)

merlyn
  merlyn@stonehenge.com
http://www.stonehenge.com/merlyn/
AOL IM: realmerlyn (Add Buddy, Send Message)
Yahoo! ID: realmerlyn (Add User, Send Message)

PAUSE-ID: MERLYN [cpan.org].
See my home page [stonehenge.com].

Journal of merlyn (47)

Thursday January 29, 2004
06:12 PM

openbsd's fingerprinting and shaping used for evil^Wgood

[ #17094 ]
I can't believe I didn't see this earlier. Oh, how sweet.

in /etc/pf.conf:

    altq on $ext_if cbq queue { q_default q_web q_mail }

    queue q_default cbq(default)

    ... queue q_web (not shown) ...

    ## all mail limited to 1Mb/sec
    queue q_mail bandwidth 1Mb { q_mail_windows }
    ## windows mail limited to 56Kb/sec
    queue q_mail_windows bandwidth 56Kb

    ...

    pass in quick proto tcp from any os "Windows" to $ext_if port 25 keep state queue q_mail_windows
    pass in quick proto tcp from any to $ext_if port 25 label "smtp" keep state queue q_mail

Mail coming from windows boxes (all flavors) compete for my virtual 56K line. All other mail can come in the fat pipe. Already a huge difference in my load. Bwa ha ha.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.