Date: Wed, 5 Sep 2001 19:26:36 +0100 From: "G D McKee" <freebsd@gdmckee.com> To: "Alfatrion" <alfatrion@cybertron.tmfweb.nl>, <freebsd-questions@FreeBSD.ORG> Subject: Re: Dummynet Question Message-ID: <016301c13638$4c5f3160$0a00a8c0@p300> References: <002701c1362f$03ebc370$0a00a8c0@p300> <004301c13634$9dfa7240$231fa8c0@kruijff>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0160_01C13640.AE0FC340 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi No - I have spelt it correct. My 4 lines are the other way round - = doesn't seem to make any difference thought. I want it to go to a = specific IP address not 'me'!!! Has anyone got any other ideas? Gordon You also have a spelling error in your message as well!!! ----- Original Message -----=20 From: Alfatrion=20 To: G D McKee ; freebsd-questions@FreeBSD.ORG=20 Sent: Wednesday, September 05, 2001 7:00 PM Subject: Re: Dummynet Question 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_0160_01C13640.AE0FC340 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 6.00.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>No - I have spelt it correct. My = 4 lines are=20 the other way round - doesn't seem to make any difference thought. = I want=20 it to go to a specific IP address not 'me'!!!</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Has anyone got any other = ideas?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Gordon</FONT></DIV> <DIV><FONT face=3DArial size=3D2>You also have a spelling error in your = message as=20 well!!!</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=3Dalfatrion@cybertron.tmfweb.nl=20 href=3D"mailto:alfatrion@cybertron.tmfweb.nl">Alfatrion</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A = title=3Dfreebsd@gdmckee.com=20 href=3D"mailto:freebsd@gdmckee.com">G D McKee</A> ; <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:00=20 PM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Dummynet = Question</DIV> <DIV><BR></DIV> <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>=20 mask </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=20 7: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=20 to 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}=20 pipe 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=20 size=3D2>Gordon</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0160_01C13640.AE0FC340-- 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?016301c13638$4c5f3160$0a00a8c0>