Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2001 18:20:09 +0100
From:      "G D McKee" <freebsd@gdmckee.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Dummynet Question
Message-ID:  <002701c1362f$03ebc370$0a00a8c0@p300>

next in thread | raw e-mail | index | archive | help
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

<!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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Add the following lines to my firewall =
config to=20
emulate a 56K modem.&nbsp;&nbsp; They are as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>${fwcmd} add pipe 1 ip from any to =
192.168.0.53 via=20
ep0&nbsp;&nbsp; <BR>${fwcmd} add pipe 2 ip from 192.168.0.53 to any via=20
ep0&nbsp;&nbsp;&nbsp; <BR>${fwcmd} pipe 1 config bw =
56Kbits/s<BR>${fwcmd} pipe 2=20
config bw 32Kbits/s</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How can I set this up so as only =
certain ports are=20
limited?&nbsp; I tried the following but it doesn't seem to =
work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>${fwcmd} add pipe 1 ip from any to =
192.168.0.53 via=20
ep0&nbsp;&nbsp; <BR>${fwcmd} add pipe 2 ip from 192.168.0.53 to any via=20
ep0&nbsp;&nbsp;&nbsp; <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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does anyone have any =
ideas?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Gordon</FONT></DIV></BODY></HTML>

------=_NextPart_000_0024_01C13637.65979A60--



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?002701c1362f$03ebc370$0a00a8c0>