Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2001 17:39:37 -0500
From:      "Sr. Mario Antonio" <dino@webjogger.net>
To:        <freebsd-ipfw@freebsd.org>
Subject:   Controling Bandwidth
Message-ID:  <003d01c1785d$8fa436c0$13c01dd0@shadowfax>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi : 

I am running  4.4-STABLE FreeBSD with IPFW built into the kernel.
I am configuring this machine to be the gateway of the wireless segment of our network.
The machine has two interfaces: fxp0 and xl0.
fxp0 is connected the private segment.
xl0 goes to internet.
I want to limit the traffic according to the segment of the network. To do this, I will apply an specific cap per segment.
These are the configurations that I have in mind:

pipe 10 config mask src-ip 0x000000ff bw 1544kbit/s queue 8Kbytes 
pipe 20 config mask dst-ip 0x000000ff bw 1544kbit/s queue 8Kbytes
add 1000 pipe 10 all from 192.168.1.0/26 to any out via fxp0 
add 1100 pipe 20 all from any to 192.168.1.0/26 in via fxp0
pipe 30 config mask src-ip 0x000000ff bw 384kbit/s queue 8Kbytes 
pipe 40 config mask dst-ip 0x000000ff bw 384kbit/s queue 8Kbytes
add 1200 pipe 30 all from 192.168.1.64/26 to any out via fxp0 
add 1300 pipe 40 all from any to 192.168.1.64/26 in via fxp0
pipe 50 config mask src-ip 0x000000ff bw 256kbit/s queue 8Kbytes 
pipe 60 config mask dst-ip 0x000000ff bw 256kbit/s queue 8Kbytes
add 1400 pipe 50 all from 192.168.1.128/26 to any out via fxp0 
add 1500 pipe 60 all from any to 192.168.1.128/26 in via fxp0
pipe 70 config mask src-ip 0x000000ff bw 128kbit/s queue 8Kbytes 
pipe 80 config mask dst-ip 0x000000ff bw 128kbit/s queue 8Kbytes
add 1600 pipe 70 all from 192.168.1.192/26 to any out via fxp0 
add 1700 pipe 80 all from any to 192.168.1.192/26 in via fxp0

Any suggestions

Regards

Mario Antonio Garcia


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi : </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am running&nbsp; 4.4-STABLE FreeBSD with IPFW 
built into the kernel.</FONT></DIV>
<DIV>I am configuring this machine to be the gateway of the wireless segment of 
our network.</DIV>
<DIV>The machine has two interfaces: fxp0 and xl0.</DIV>
<DIV>fxp0&nbsp;is connected the private segment.</DIV>
<DIV>xl0 goes to internet.</DIV>
<DIV>I want to limit the traffic according to the segment of the network. To do 
this, I will apply an specific cap per segment.</DIV>
<DIV>These are the configurations that I have in mind:</DIV>
<DIV>&nbsp;</DIV>
<DIV>pipe 10 config mask src-ip 0x000000ff bw 1544kbit/s queue 8Kbytes <BR>pipe 
20 config mask dst-ip 0x000000ff bw 1544kbit/s queue 8Kbytes<BR>add 1000 pipe 10 
all from 192.168.1.0/26 to any out via fxp0&nbsp;<BR>add 1100 pipe 20 all from 
any to 192.168.1.0/26 in via fxp0<BR>pipe 30 config mask src-ip 0x000000ff bw 
384kbit/s queue 8Kbytes <BR>pipe 40 config mask dst-ip 0x000000ff bw 384kbit/s 
queue 8Kbytes<BR>add 1200 pipe 30 all from 192.168.1.64/26 to any out via 
fxp0&nbsp;<BR>add 1300 pipe 40 all from any to 192.168.1.64/26 in via 
fxp0<BR>pipe 50 config mask src-ip 0x000000ff bw 256kbit/s queue 8Kbytes 
<BR>pipe 60 config mask dst-ip 0x000000ff bw 256kbit/s queue 8Kbytes<BR>add 1400 
pipe 50 all from 192.168.1.128/26 to any out via fxp0&nbsp;<BR>add 1500 pipe 60 
all from any to 192.168.1.128/26 in via fxp0<BR>pipe 70 config mask src-ip 
0x000000ff bw 128kbit/s queue 8Kbytes <BR>pipe 80 config mask dst-ip 0x000000ff 
bw 128kbit/s queue 8Kbytes<BR>add 1600 pipe 70 all from 192.168.1.192/26 to any 
out via fxp0&nbsp;<BR>add 1700 pipe 80 all from any to 192.168.1.192/26 in via 
fxp0</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any suggestions</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV>
<DIV>&nbsp;</DIV>
<DIV>Mario Antonio Garcia</DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003d01c1785d$8fa436c0$13c01dd0>