Sponsored Content
Special Forums IP Networking using dummynet to limit bandwidth Post 302078990 by Alex_sh on Thursday 6th of July 2006 07:18:12 AM
Old 07-06-2006
Question using dummynet to limit bandwidth

Hello
I need to limit the bandwidth from a list of ip addresses. I was planning to use the dummynet with lookup tables, so i took the example given in the manual pages:
Code:
ipfw pipe 1 config bw 1000Kbyte/s            
ipfw pipe 4 config bw 4000Kbyte/s           
 ...           
ipfw table 1 add 192.168.2.0/24 1            
ipfw table 1 add 192.168.0.0/27 4            
ipfw table 1 add 192.168.0.2 1            
...            
ipfw pipe tablearg ip from table(1) to any

I modified the network addresses as needed but there seems to be a problem with the last line:
Code:
ipfw pipe tablearg ip from table(1) to any 
bash: syntax error near unexpected token `('

I tried to do it another way, but it didn't work too:
Code:
 ipfw pipe tablearg ip from table 1 to any 
ipfw: bad command `tablearg'

I'm using FreeBSD 6.1
Could someone tell me what i'm doing wrong or where to find some info


Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

bandwidth check?

I'm on T1, is there any way i can check my acctual bandwidth? Thank you all (3 Replies)
Discussion started by: solvman
3 Replies

2. IP Networking

Bandwidth Caping With PF

i have two questions actually... i need to block certain ports with openbsd and PF in a large lan, the firewall is supposed to be a router between the internet and the first lan switch. first of all, would this work at all in theory? second, i tried doing this a few days ago at a huge lan but i... (2 Replies)
Discussion started by: nocturnal
2 Replies

3. IP Networking

Bandwidth Regulation

Hello, I was wondering how one would go about regulating bandwidth of a server running RH Linux 8.0 and Apache. I am running a webserver, and want only one person to be able to download one file at a time. So, they can't click about 10 files and soak up lots of bandwidth. Plus, I would like to cap... (2 Replies)
Discussion started by: Phobos
2 Replies

4. UNIX for Dummies Questions & Answers

Bandwidth Monitoring.

Hi, I'm looking for some way to bring up in a shell window a realtime (or something that updates at 10 second intervals or whatever) bandwidth monitor. I just want something that shows me how much kbps is going in and how much is going out of each interface. Is there something that might... (2 Replies)
Discussion started by: d11wtq
2 Replies

5. UNIX for Advanced & Expert Users

Bandwidth monitoring

Hi Gurus, Need to have a way to monitor Bandwidth utilization on Linux servers, running squid . Have worked on 3rd party monitoring tools like Bandwidth d, Nagios etc. But we are working to find out a way to monitor this through Sitescope, for which we need to find a file where the... (4 Replies)
Discussion started by: Crazy_murli
4 Replies

6. IP Networking

bandwidth

Hi, 1-What is bandewidth ? 2-How to calculate ? 3-How to measure ? Any free software to measure it ? Many thanks. (4 Replies)
Discussion started by: big123456
4 Replies

7. BSD

Using several pipes in ipfw (dummynet)

Hi! I've already posted this on the freebsd-questions mailing list, but I thought I could try it here too. I'm using FreeBSD 7.0 with IPFW DUMMYNET enabled. I've got a problem with creating a ruleset, which allows me to limit the overall bandwidth of a link and afterwards pass the packets... (0 Replies)
Discussion started by: xenator
0 Replies

8. BSD

dummynet problem.

I am using dummynet in bridge mode. and its working fine. Now I have built another box (freebsd 7.1) in router mode. On this box I have two NICs, one for lan and one for wan. both networks are segmented physically and logically i-e both interfaces have different ip pools and connected to... (0 Replies)
Discussion started by: azfar
0 Replies

9. Solaris

Limit: stacksize: Can't remove limit

Hi all, I'm using to Solaris machine. When I run a simple script this messenger come out:"limit: stacksize: Can't remove limit". Any one know the way to resolve this problem without reboot the machine? Thanks in advance. (3 Replies)
Discussion started by: Diabolist9
3 Replies

10. Hardware

Help with bandwidth Limit for netgear

Hello All , Hope you are doing good. I have a netgear router + modem in my home . My roommate brought his friend as a guest , he is downloading stuff like crazy day and night , while talking with my friend in India got to know there is concept called BANDWIDTH LIMIT wherein i can... (4 Replies)
Discussion started by: radha254
4 Replies
DUMMYNET(4)						   BSD Kernel Interfaces Manual 					       DUMMYNET(4)

NAME
dummynet -- traffic shaper, bandwidth manager and delay emulator DESCRIPTION
The dummynet system facility permits the control of traffic going through the various network interfaces, by applying bandwidth and queue size limitations, implementing different scheduling and queue management policies, and emulating delays and losses. The user interface for dummynet is implemented by the ipfw(8) utility, so please refer to the ipfw(8) manpage for a complete description of the dummynet capabilities and how to use it. Kernel Options The following options in the kernel configuration file are related to dummynet operation: IPFIREWALL enable ipfirewall (required for dummynet) IPFIREWALL_VERBOSE enable firewall output IPFIREWALL_VERBOSE_LIMIT limit firewall output DUMMYNET enable dummynet operation HZ set the timer granularity Generally, the following options are required: options IPFIREWALL options DUMMYNET options HZ=1000 # strongly recommended Additionally, one may want to increase the number of mbuf clusters (used to store network packets) according to the sum of the bandwidth- delay products and queue sizes of all configured pipes. SEE ALSO
setsockopt(2), if_bridge(4), ip(4), ipfw(8), sysctl(8) HISTORY
The dummynet facility was initially implemented as a testing tool for TCP congestion control by Luigi Rizzo <luigi@iet.unipi.it>, as described on ACM Computer Communication Review, Jan.97 issue. Later it has been modified to work at the IP and bridging levels, integrated with the ipfw(4) packet filter, and extended to support multiple queueing and scheduling policies. BSD
October 28, 2002 BSD
All times are GMT -4. The time now is 04:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy