From owner-freebsd-questions Wed Sep 5 11: 1:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp06.wxs.nl (smtp06.wxs.nl [195.121.6.58]) by hub.freebsd.org (Postfix) with ESMTP id 94A6E37B403 for ; Wed, 5 Sep 2001 11:01:03 -0700 (PDT) Received: from cybertron ([213.10.151.186]) by smtp06.wxs.nl (Netscape Messaging Server 4.05) with SMTP id GJ7BDM02.LLQ; Wed, 5 Sep 2001 20:00:58 +0200 Message-ID: <004301c13634$9dfa7240$231fa8c0@kruijff> From: "Alfatrion" To: "G D McKee" , References: <002701c1362f$03ebc370$0a00a8c0@p300> Subject: Re: Dummynet Question Date: Wed, 5 Sep 2001 20:00:12 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0040_01C13645.5F5D2DF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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
This way works for me:
 
ipfw pipe 1 config bw=20 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 -----
From:=20 G D = McKee=20
To: freebsd-questions@FreeBSD.O= RG=20
Sent: Wednesday, September 05, = 2001 7:20=20 PM
Subject: Dummynet = Question

Hi,
 
Add the following lines to my = firewall config to=20 emulate a 56K modem.   They are as follows:
 
${fwcmd} add pipe 1 ip from any to = 192.168.0.53=20 via ep0  
${fwcmd} add pipe 2 ip from 192.168.0.53 to = any via=20 ep0   
${fwcmd} pipe 1 config bw = 56Kbits/s
${fwcmd} pipe=20 2 config bw 32Kbits/s
 
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.
 
${fwcmd} add pipe 1 ip from any to = 192.168.0.53=20 via ep0  
${fwcmd} add pipe 2 ip from 192.168.0.53 to = any via=20 ep0   
${fwcmd} pipe 1 config bw 56Kbits/s mask = dst-port=20 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-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message