(pf is the right list for this.)
On 11/06/2006 06:12:12 AM, Reza Muhammad wrote:
Dear All.
I start with the simple rule set in my pf bridge
machine to limit
bandwidth 3Mbps from my server on lan to internet and
from internet to
my server on lan
my_server_on_lan="172.16.0.228"
internet="202.x.x.x"
lan = "172.16.0.0/16"
pass out on xl1 from $my_server_on_lan to $internet \
keep state queue
(int_out)
pass out on xl2 from $internet to $my_server_on_lan
\ keep state queue
(int_in)
These rules match only traffic with IP source/destination
addresses of $my_server_on_lan and $internet.
You want to match all traffic passing between
your lan and the internet, entire networks, not just between those
two computers. (NAT may complicate this depending on where
you've installed your bridge.)
You might also want to use hfsc queueing. Depending on your
requirements it does borrowing much better. (I forget the
details, see the list archives.)
Karl <[EMAIL PROTECTED]>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein