Quota rule and IP range

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Jane
Posts: 5
Joined: Tue May 01, 2012 3:59 pm

Quota rule and IP range

Post by Jane »

Hi!

We can't figure out how to set an IP range to our quota rule, all our attemps results to an "invalid address" error notification.

What we are trying to achieve is to set a quota rule to limit all our devices except our main computer (192.168.10.2).

At the moment we are manually adding every IP to the rule, which is working fine, but we would feel better if we could set directly an IP range from 192.168.10.3 to 192.168.10.255.

How could we achieve that?

Thanks!

Jane

(We are using Gargoyle 1.5.4 on a Netgear 3700v2)

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Quota rule and IP range

Post by pbix »

IP ranges change be specfied as an IP range (ie. IP1-IP2) and in CIDR notation on the Quota page. This is even noted on the page.

Are you sure you are talking about quotas?
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Jane
Posts: 5
Joined: Tue May 01, 2012 3:59 pm

Re: Quota rule and IP range

Post by Jane »

Hi pbix,

Here is the quota feature i was referring to:

Image

As you can see, there is no information about how to formulate the IP range, so thank you for the clue about the CIDR notation.

And here is how i'm covering the 192.168.10.3 to 192.168.10.255 IP range:
  • 192.168.10.3
  • 192.168.10.4/30
  • 192.168.10.8/29
  • 192.168.10.16/28
  • 192.168.10.32/27
  • 192.168.10.64/26
  • 192.168.10.128/25
So far it seems to work pretty well, cheers!

Jane

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Quota rule and IP range

Post by pbix »

You could also use one line
"192.168.10.3-192.168.10.255"
to cover the same range.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Jane
Posts: 5
Joined: Tue May 01, 2012 3:59 pm

Re: Quota rule and IP range

Post by Jane »

Ok i removed all our quotas rules and gave a try to "192.168.10.3-192.168.10.255", here is the error i get:
"192.168.10.3-192.168.10.255" is not a valid IP or IP range
Could not add quota.

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Quota rule and IP range

Post by pbix »

That's strange because I tested this on my router and got no such error.

When exactly do you get the error? is it when you press the "Add" button or the "Save" button.

I am using v1.5.4 as well.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Jane
Posts: 5
Joined: Tue May 01, 2012 3:59 pm

Re: Quota rule and IP range

Post by Jane »

I got this error by pressing "Add New Quota", if i press "Add" i get the "Invalid Address" error.

I played a bit with the input, here is what i found:

192.168.10.3-192.168.10.255
192.168.10.255
=> The input text changes to red color, it can't be added (invalid address).

192.168.10.3-192.168.10.254
192.168.10.3-192.168.10.[Anything < 255]
192.168.10.[Anything < 255]
192.168.10.128/25 (which covers 192.168.10.128-192.168.10.255)
=> The input text stays in black color, the IP range can be added.


Our DHCP range is set by default to (for 192.168.10):
- Start: 100
- End: 250

I tried to push the End to 255, but it doesn't change anything to the quotas rules, still the same errors.

mix
Posts: 292
Joined: Sun Feb 27, 2011 11:18 am

Re: Quota rule and IP range

Post by mix »

So you apparently don't have any clue what a broadcast address is your saying? You can't filter out 192.168.10.255 if your lan subnet is 255.255.255.0. 192.168.10.254 is the last assignable ip address.
WRT54GL v1.1
Gargoyle 1.4.7

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Quota rule and IP range

Post by pbix »

Well to be fair it escaped my observation as well but it is true that 192.168.10.254 is the last assignable address so the page is correct that your address range is invalid.

Anyway I guess we both learned/relearned something.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Jane
Posts: 5
Joined: Tue May 01, 2012 3:59 pm

Re: Quota rule and IP range

Post by Jane »

Indeed i didn't know about that subtlety :(
So 192.168.10.254 it is, thanks for the help.

Jane

Post Reply