ipfw - bandwidth throttling (sanity check!)

Odhiambo Washington wash at wananchi.com
Tue Sep 12 12:49:13 PDT 2006


Hello Security guy ;)

I have tried very hard to understand ipfw just for the purpose of
bandwidth throttling for smtp service.

Basically, I want to throttle the bandwidth used by my SMTP
server outbound to _anyone_ else except my ip blocks.

My Server is 1.2.3.4 and my ip blocks are a.b.c.d/19 and
e.f.g.h/20


Are the following rules sane enough?

        ipfw pipe 1 config bw 256Kbit/s
        ipfw add pipe 1 tcp from 1.2.3.4 to not a.b.c.d/19 25
        ipfw add pipe 1 tcp from 1.2.3.4 to not e.f.g.h/20 25


Any smtp traffic not to these netblocks should be throttled.
By that, I am thinking it will match everything smtp outbound
only, not inbound.


Thank you for your time.


-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash at wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+

Don't put off for tomorrow what you can do today, because if you enjoy
it today you can do it again tomorrow.


More information about the freebsd-questions mailing list