using dummynet to limit bandwidth


 
Thread Tools Search this Thread
Special Forums IP Networking using dummynet to limit bandwidth
# 1  
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
# 2  
Old 07-06-2006
To limit the bandwidth use traffic control (tc) tool from iproute2 package
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question