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>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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   
${fwcmd} add pipe 2 ip from 192.168.0.53 to any via ep0    
${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   
${fwcmd} add pipe 2 ip from 192.168.0.53 to any via ep0    
${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

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Add the following lines to my firewall config to 
emulate a 56K modem.&nbsp;&nbsp; They are as follows:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>${fwcmd} add pipe 1 ip from any to 192.168.0.53 via 
ep0&nbsp;&nbsp; <BR>${fwcmd} add pipe 2 ip from 192.168.0.53 to any via 
ep0&nbsp;&nbsp;&nbsp; <BR>${fwcmd} pipe 1 config bw 56Kbits/s<BR>${fwcmd} pipe 2 
config bw 32Kbits/s</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How can I set this up so as only certain ports are 
limited?&nbsp; I tried the following but it doesn't seem to work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>${fwcmd} add pipe 1 ip from any to 192.168.0.53 via 
ep0&nbsp;&nbsp; <BR>${fwcmd} add pipe 2 ip from 192.168.0.53 to any via 
ep0&nbsp;&nbsp;&nbsp; <BR>${fwcmd} pipe 1 config bw 56Kbits/s mask dst-port 
80<BR>${fwcmd} pipe 2 config bw 32Kbits/s maask src-port 80</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Does anyone have any ideas?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Gordon</FONT></DIV></BODY></HTML>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002701c1362f$03ebc370$0a00a8c0>