Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2001 08:34:43 -0700
From:      "Jeff" <lewwid@home.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Restricting bw on ports
Message-ID:  <004601c09440$2a0d33e0$a327b8a1@ab.hsia.telus.net>

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

[-- Attachment #1 --]
I'm using ipfw/dummynet to restrict bandwidth.  Is there a way to have dummynet restrict bandwidth on a port basis and not global.

For example
ipfw add pipe 1 ip from any to any
ipfw pipe 1 config mask dst-port 20-21 bw 240Kbit/s

This restricts all ports, 80..25.. 

I've tried many combinations:

ipfw add pipe 1 tcp from any to any 20-21
ipfw pipe 1 config bw 240Kbit/s  

Other then bwmgr, is there a way to restrict bandwidth per PORT.

Thanks a lot,
Jeff.


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'm using ipfw/dummynet to restrict 
bandwidth.&nbsp; Is there a way to have dummynet restrict bandwidth on a port 
basis and not global.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>For example</FONT></DIV>
<DIV><FONT face=Arial size=2>ipfw add pipe 1 ip from any to any</FONT></DIV>
<DIV><FONT face=Arial size=2>ipfw pipe 1 config mask dst-port 20-21 bw 
240Kbit/s</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This restricts all ports, 80..25.. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I've tried many combinations:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>ipfw add pipe 1 tcp from any to any 
20-21</FONT></DIV>
<DIV><FONT face=Arial size=2>ipfw pipe 1 config bw 240Kbit/s&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Other then bwmgr, is there a way to restrict 
bandwidth per PORT.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks a lot,</FONT></DIV>
<DIV><FONT face=Arial size=2>Jeff.</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004601c09440$2a0d33e0$a327b8a1>