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
This is a multi-part message in MIME format. ------=_NextPart_000_0043_01C09405.7BE18B20 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable 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..=20 I've tried many combinations: ipfw add pipe 1 tcp from any to any 20-21 ipfw pipe 1 config bw 240Kbit/s =20 Other then bwmgr, is there a way to restrict bandwidth per PORT. Thanks a lot, Jeff. ------=_NextPart_000_0043_01C09405.7BE18B20 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dwindows-1252"> <META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>I'm using ipfw/dummynet to restrict=20 bandwidth. Is there a way to have dummynet restrict bandwidth on a = port=20 basis and not global.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>For example</FONT></DIV> <DIV><FONT face=3DArial size=3D2>ipfw add pipe 1 ip from any to = any</FONT></DIV> <DIV><FONT face=3DArial size=3D2>ipfw pipe 1 config mask dst-port 20-21 = bw=20 240Kbit/s</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>This restricts all ports, 80..25.. = </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I've tried many = combinations:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>ipfw add pipe 1 tcp from any to any=20 20-21</FONT></DIV> <DIV><FONT face=3DArial size=3D2>ipfw pipe 1 config bw 240Kbit/s = </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Other then bwmgr, is there a way to = restrict=20 bandwidth per PORT.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks a lot,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Jeff.</FONT></DIV> <DIV> </DIV></BODY></HTML> ------=_NextPart_000_0043_01C09405.7BE18B20-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004601c09440$2a0d33e0$a327b8a1>