Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2001 22:49:24 -0700
From:      J & C Frazier <admin@csocs.com>
To:        freebsd-isp@freebsd.org
Subject:   Bandwidth limits
Message-ID:  <3AB59DE3.801B23C9@csocs.com>

next in thread | raw e-mail | index | archive | help
I have a few individuals who are running games servers from their
shell accounts.  I don't have a problem with it really, but I would like

to establish a bandwidth limit on 2 IP's specifically to prevent
possible
problems later on once their hosts become more well known.  Right
now I have the following firewall config set up:

ipfw add 100 pipe 1 ip from any to any in
ipfw add 200 pipe 2 ip from any to any out
ipfw pipe 1 config mask dst-ip 0xffffffff
ipfw pipe 2 config mask src-ip 0xffffffff

Basically all I have set up is a basic dummynet to monitor bandwidth
usage via cron scripts.  I have tried to add other rules to limit the
bandwidth on my customers as shown below:

ipfw add 100 pipe 1 ip from any to any in
ipfw add 200 pipe 2 ip from any to any out
ipfw pipe 1 config mask dst-ip 0xffffffff bw 256Kbytes/s queue 10Kbytes
ipfw pipe 2 config mask src-ip 0xffffffff bw 256Kbytes/s queue 10Kbytes

But that effects all IP's on the system and causes a major slowdown.
I'm not extremely familiar with ipfw and what all I can do with it yet
other then what I've read on the man pages.  I'm hoping some of you
experts that deal with this type of thing all the time might be able to
enlighten me or give me a few ideas.  Thanks.

J.C. Frazier


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AB59DE3.801B23C9>