Date: Wed, 5 Sep 2001 20:00:12 +0200 From: "Alfatrion" <alfatrion@cybertron.tmfweb.nl> To: "G D McKee" <freebsd@gdmckee.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: Dummynet Question Message-ID: <004301c13634$9dfa7240$231fa8c0@kruijff> References: <002701c1362f$03ebc370$0a00a8c0@p300>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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 <=> mask
----- Original Message -----
From: G D McKee
To: freebsd-questions@FreeBSD.ORG
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
${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 5.50.4616.200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>This way works for me:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ipfw pipe 1 config bw
56Kbits/s<BR>ipfw pipe 2 config bw 32Kbits/s</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ipwf add pipe 1 from any to me 80</FONT></DIV>
<DIV><FONT face=Arial size=2>ipfw add pipe 2 from me 80 to any</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Alex</FONT></DIV>
<DIV><FONT face=Arial size=2>You do have a spelling error: maask <=> mask
</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=freebsd@gdmckee.com href="mailto:freebsd@gdmckee.com">G D McKee</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freebsd-questions@FreeBSD.ORG
href="mailto:freebsd-questions@FreeBSD.ORG">freebsd-questions@FreeBSD.ORG</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 05, 2001 7:20
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Dummynet Question</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Add the following lines to my firewall config to
emulate a 56K modem. They are as follows:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>${fwcmd} add pipe 1 ip from any to 192.168.0.53
via ep0 <BR>${fwcmd} add pipe 2 ip from 192.168.0.53 to any via
ep0 <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> </DIV>
<DIV><FONT face=Arial size=2>How can I set this up so as only certain ports
are limited? I tried the following but it doesn't seem to
work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>${fwcmd} add pipe 1 ip from any to 192.168.0.53
via ep0 <BR>${fwcmd} add pipe 2 ip from 192.168.0.53 to any via
ep0 <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> </DIV>
<DIV><FONT face=Arial size=2>Does anyone have any ideas?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Gordon</FONT></DIV></BLOCKQUOTE></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004301c13634$9dfa7240$231fa8c0>
