Date: Wed, 5 Sep 2001 20:00:12 +0200 From: "Alfatrion" <alfatrion@cybertron.tmfweb.nl> To: "G D McKee" <freebsd@gdmckee.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: Dummynet Question Message-ID: <004301c13634$9dfa7240$231fa8c0@kruijff> References: <002701c1362f$03ebc370$0a00a8c0@p300>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0040_01C13645.5F5D2DF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable This way works for me: ipfw pipe 1 config bw 56Kbits/s ipfw pipe 2 config bw 32Kbits/s ipwf add pipe 1 from any to me 80 ipfw add pipe 2 from me 80 to any Alex You do have a spelling error: maask <=3D> mask=20 ----- Original Message -----=20 From: G D McKee=20 To: freebsd-questions@FreeBSD.ORG=20 Sent: Wednesday, September 05, 2001 7:20 PM Subject: Dummynet Question Hi, Add the following lines to my firewall config to emulate a 56K modem. = They are as follows: ${fwcmd} add pipe 1 ip from any to 192.168.0.53 via ep0 =20 ${fwcmd} add pipe 2 ip from 192.168.0.53 to any via ep0 =20 ${fwcmd} pipe 1 config bw 56Kbits/s ${fwcmd} pipe 2 config bw 32Kbits/s How can I set this up so as only certain ports are limited? I tried = the following but it doesn't seem to work. ${fwcmd} add pipe 1 ip from any to 192.168.0.53 via ep0 =20 ${fwcmd} add pipe 2 ip from 192.168.0.53 to any via ep0 =20 ${fwcmd} pipe 1 config bw 56Kbits/s mask dst-port 80 ${fwcmd} pipe 2 config bw 32Kbits/s maask src-port 80 Does anyone have any ideas? Thanks in advance Gordon ------=_NextPart_000_0040_01C13645.5F5D2DF0 Content-Type: text/html; charset="iso-8859-1" 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=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>This way works for me:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>ipfw pipe 1 config bw=20 56Kbits/s<BR>ipfw pipe 2 config bw 32Kbits/s</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>ipwf add pipe 1 from any to me = 80</FONT></DIV> <DIV><FONT face=3DArial size=3D2>ipfw add pipe 2 from me 80 to = any</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Alex</FONT></DIV> <DIV><FONT face=3DArial size=3D2>You do have a spelling error: maask = <=3D> mask=20 </FONT></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A title=3Dfreebsd@gdmckee.com href=3D"mailto:freebsd@gdmckee.com">G D = McKee</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 title=3Dfreebsd-questions@FreeBSD.ORG=20 = href=3D"mailto:freebsd-questions@FreeBSD.ORG">freebsd-questions@FreeBSD.O= RG</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, September 05, = 2001 7:20=20 PM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Dummynet = Question</DIV> <DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial = size=3D2></FONT><FONT=20 face=3DArial size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT = face=3DArial=20 size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20 size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20 size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20 size=3D2></FONT><FONT face=3DArial size=3D2></FONT><BR></DIV> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Add the following lines to my = firewall config to=20 emulate a 56K modem. They are as follows:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>${fwcmd} add pipe 1 ip from any to = 192.168.0.53=20 via ep0 <BR>${fwcmd} add pipe 2 ip from 192.168.0.53 to = any via=20 ep0 <BR>${fwcmd} pipe 1 config bw = 56Kbits/s<BR>${fwcmd} pipe=20 2 config bw 32Kbits/s</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>How can I set this up so as only = certain ports=20 are limited? I tried the following but it doesn't seem to=20 work.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>${fwcmd} add pipe 1 ip from any to = 192.168.0.53=20 via ep0 <BR>${fwcmd} add pipe 2 ip from 192.168.0.53 to = any via=20 ep0 <BR>${fwcmd} pipe 1 config bw 56Kbits/s mask = dst-port=20 80<BR>${fwcmd} pipe 2 config bw 32Kbits/s maask src-port = 80</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Does anyone have any = ideas?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>Gordon</FONT></DIV></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0040_01C13645.5F5D2DF0-- 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?004301c13634$9dfa7240$231fa8c0>