Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2001 23:25:07 -0700
From:      J & C Frazier <admin@csocs.com>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Bandwidth limits
Message-ID:  <3AB5A643.1D6D1AEA@csocs.com>
References:  <3AB59DE3.801B23C9@csocs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Also, as a side question: Is there any performance increase/decrease
or noticable ping differences in using a queue?  What is generally the
correlation between the bandwidth limit and the queue size?  Just
curious.  Thanks again.

J & C Frazier wrote:

> 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


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?3AB5A643.1D6D1AEA>