Limit bandwidth per MAC-address or IP-address?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
limerep
DD-WRT Novice


Joined: 07 Feb 2007
Posts: 2

PostPosted: Wed Feb 07, 2007 18:08    Post subject: Limit bandwidth per MAC-address or IP-address? Reply with quote
Hi! I have a WRT54GL with dd-wrt v23 SP2 mini. Is it possible to limit bandwidth per MAC-address or IP-address? I tried QoS, but I didn't get it to work. One of the users on the network uses all the upload. Does anyone know how to deal with this problem?
Sponsor
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Wed Feb 07, 2007 18:43    Post subject: Reply with quote
You can still use tc and iptables... There ary good books about iptables...
_________________
DD-WRT F.A.Q.

Webcam Kiel
limerep
DD-WRT Novice


Joined: 07 Feb 2007
Posts: 2

PostPosted: Wed Feb 07, 2007 18:51    Post subject: tutorials? Reply with quote
Is there any good tutorials/guides of how to do this? I'm not to good with networks
framerelay
DD-WRT Novice


Joined: 26 Jun 2006
Posts: 21
Location: Ukraine, Sevastopol

PostPosted: Wed Feb 07, 2007 19:59    Post subject: Reply with quote
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=10655&highlight=

As for me it's work
elektik
DD-WRT Novice


Joined: 25 Sep 2006
Posts: 32

PostPosted: Thu Feb 08, 2007 0:03    Post subject: Re: Limit bandwidth per MAC-address or IP-address? Reply with quote
limerep wrote:
Hi! I have a WRT54GL with dd-wrt v23 SP2 mini. Is it possible to limit bandwidth per MAC-address or IP-address? I tried QoS, but I didn't get it to work. One of the users on the network uses all the upload. Does anyone know how to deal with this problem?


You can also purchase dd-wrt's special editions which include a per mac/user bandwidth limitation. This might be beneficial to you and is worth the time and effort.

http://www.dd-wrt.com/wiki/index.php/What_is_DD-WRT%3F#Special_Versions
metala
DD-WRT User


Joined: 16 Oct 2006
Posts: 112
Location: Blagoevgrad, Bulgaria

PostPosted: Thu Feb 08, 2007 1:21    Post subject: Reply with quote
You may try the script generator in my signature.
_________________
The morning after the night before.
Little application that generates scripts for traffic shaping
WRT54SG
Linksys WRT54GL v1.1: Tomato 1.11
Buffalo WHR-HP-G54: DD-WRT v23 SP2
sync
DD-WRT User


Joined: 18 Nov 2006
Posts: 57

PostPosted: Tue Feb 13, 2007 3:55    Post subject: Reply with quote
http://www.dd-wrt.com/phpBB2/viewforum.php?f=17

it says

Sorry, but only users granted special access can read topics in this forum.

how do you get this access?
u3gyxap
DD-WRT User


Joined: 07 Jun 2006
Posts: 298

PostPosted: Tue Feb 13, 2007 5:37    Post subject: Reply with quote
You pay/donate 20 Euro.
joksi
DD-WRT Guru


Joined: 16 Jan 2007
Posts: 1238

PostPosted: Tue Feb 13, 2007 23:26    Post subject: Reply with quote
metala wrote:
You may try the script generator in my signature.


I've tried this script, but it seems it doesnt work that good on a fonera in client mode.
if i run it without the script, i get approx 1,5MB/s to my PC, when using the generator at 4000kbit down and 800kb up I receive sometimes 250kB/s and sometimes 70kB/s down. even though where i download from its without the script reaces 1,5MB as I said.

so the shaping seems not to work, cause 4000kbit should be 500kB/s?
kdid
DD-WRT Novice


Joined: 15 Feb 2007
Posts: 13

PostPosted: Fri Feb 16, 2007 22:16    Post subject: Reply with quote
Aint there an easy way to limit the overall allowed maximum of bw-usage on the router? Without beeing mac/ip/protocol dependent. Just a maxumum limit on the wan-interface overall.

I´ve tried seting up tc rules in firewall (as pasted below), but the speed becomes verry jumpy as joksi describes.

Code:

TCA="tc class add dev br0"
TFA="tc filter add dev br0"
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: htb
tc class add dev br0 parent 1: classid 1:1 htb rate 256kbit
$TCA parent 1:1 classid 1:10 htb rate 256kbit ceil 256kbit prio 2
$TFA parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
iptables -t mangle -A POSTROUTING -d 192.168.182.2 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.182.3 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.182.4 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.182.5 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.182.6 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.182.7 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.182.8 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.182.9 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.182.10 -j MARK --set-mark 10
tc qdisc add dev br0 ingress
$TFA parent ffff: protocol ip handle 50 fw police rate 256kbit mtu 12k burst 10k drop
iptables -t mangle -A PREROUTING -s 192.168.182.2 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.182.3 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.182.4 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.182.5 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.182.6 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.182.7 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.182.8 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.182.9 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.182.10 -j MARK --set-mark 50
sync
DD-WRT User


Joined: 18 Nov 2006
Posts: 57

PostPosted: Mon Feb 19, 2007 1:05    Post subject: Reply with quote
hi there,

i'm wanting to purchase the special edition, but got 2 question before i make the purchase...

1. When v24 comes out will there if a special edition for that, also can we download it, or do we have to pay more for v24 special edition?

2. after purchasing the special edition, can we download both micro and standard or we can only download 1 of them?

cheers
codswallop
DD-WRT Novice


Joined: 25 Sep 2006
Posts: 15

PostPosted: Mon Feb 19, 2007 20:53    Post subject: Reply with quote
Hi
Been thinking about buying too
Good questions Sync
Regards
fastpakr
DD-WRT User


Joined: 08 Nov 2006
Posts: 163

PostPosted: Mon Feb 19, 2007 22:51    Post subject: Reply with quote
How does one apply the script when in client bridge mode? I'm using it (albeit on a Tomato) with a device in client bridge that could be hosting pc's and a couple of phones. I'd like to set a guaranteed amount of throughput to the phones but applying the script on the AP or the Client Bridge doesn't seem to improve anything.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum