From owner-freebsd-questions Wed Sep 5 10:19:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from blueyonder.co.uk (pcow029o.blueyonder.co.uk [195.188.53.123]) by hub.freebsd.org (Postfix) with ESMTP id 8883837B40C for ; Wed, 5 Sep 2001 10:19:19 -0700 (PDT) Received: from gdmckee.local ([62.30.209.11]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 5 Sep 2001 18:19:31 +0100 Received: from [192.168.0.10] (helo=p300) by gdmckee.local with smtp (Exim 3.32 #1) id 15egKQ-0000FW-00 for freebsd-questions@FreeBSD.ORG; Wed, 05 Sep 2001 18:19:06 +0100 Message-ID: <002701c1362f$03ebc370$0a00a8c0@p300> From: "G D McKee" To: Subject: Dummynet Question Date: Wed, 5 Sep 2001 18:20:09 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0024_01C13637.65979A60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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_0024_01C13637.65979A60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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_0024_01C13637.65979A60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
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 via=20 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 2=20 config bw 32Kbits/s
 
How can I set this up so as only = certain ports are=20 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=20 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_0024_01C13637.65979A60-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message