1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
ClearOS Module - Bandwidth (Rule) Monitor
(1 viewing) 1 Guest
Go to bottomPage: 1234567
TOPIC: ClearOS Module - Bandwidth (Rule) Monitor
#18463
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 7 Months ago  
UPDATE: 5.1.8 is out, this fixes several multiwan detection issues in 5.1.7.

It should now more reliably detect more than one WAN and which IMQ devices belong to which

ftp://starlane.gotdns.org/app-bandwidth-monitor-5.1-8.i386.rpm
Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/10/05 14:47 By timb80.
The administrator has disabled public write access.
 
#18602
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 7 Months ago  
Tim have you done any testing with limiting bandwidth by M.A.C? I used the web ui and it seem to of broke my internet, it came to a crawl for some reason, not sure if it was just a coincedence but im unwilling to try at the moment as its being used live.
kripz
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18609
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 7 Months ago  
Hi Kripz, no i've not used the bandwidth system with MAC addresses...in fact it wont work because the u32 filters the webconfig creates match IP's only

I did once attempt too when I was experimenting with u32 filters but it's a bit futile because MAC is lost once is passes through the gateway anyway. If you or anyone likes to play around with custom rules by all means have a play with the following example:-
Code:

#add new class for testing
tc class add dev imq0 parent 1:1 classid 1:4 htb rate 50000bit ceil 450000bit prio 0
tc class add dev imq1 parent 1:1 classid 1:4 htb rate 50000bit ceil 450000bit prio 0

# match dst MAC addresses (AA:BB:CC:DD:EE:FF)
tc filter add dev imq1 parent 1:0 protocol ip prio 1 u32 \
           match u16 0x0800 0xFFFF at -2 \
           match u32 0xCCDDEEFF 0xFFFFFFFF at -12 \
           match u16 0xAABB 0xFFFF at -14 \
           flowid 1:4

# match src MAC addresses (AA:BB:CC:DD:EE:FF)
tc filter add dev imq0 parent 1:0 protocol ip prio 1 u32 \
            match u16 0x0800 0xFFFF at -2 \
           match u16 0xEEFF 0xFFFF at -4 \
           match u32 0xAABBCCDD 0xFFFFFFFF at -8 \
            flowid 1:4

Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
Last Edit: 2011/01/17 05:30 By timb80.
The administrator has disabled public write access.
 
#23250
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 4 Months ago  
Tim Burgess wrote:
UPDATE: 5.1.8 is out, this fixes several multiwan detection issues in 5.1.7.

It should now more reliably detect more than one WAN and which IMQ devices belong to which

ftp://starlane.gotdns.org/app-bandwidth-monitor-5.1-8.i386.rpm


i have a clearos box with 3 external links and one single lan.
i need to limit bandwidth and as per your suggestion i installed the bandwidth module from the upper link which is quoted....the module installs fine but the problem is..it does not appear in the bandwidth and qos...only bandwidth link is present but lack the currently installed module...
i even rebooted the machine but the problem persists..
i have a latest clearos 5.2 sp1 installed
and whenever i type the command ifconfig
it shows other two new interfaces named imq0 and imq1

will you please let me solve the problem
any help will greatly be appreciated

~prahmod
Pramod Giri
Senior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#23254
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 4 Months ago  
Hi, thanks for trying it out - what locale settings area you using?

You can try navigating to clearos:81/admin/bandwidth-monitor.php
Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#23256
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 4 Months ago  
thank you for your quick response...
on replacing that link with my local ip....i get Access Denied error....
the module is installed without errors but it's not displaying in the webconfiig
Pramod Giri
Senior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#23257
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 4 Months ago  
Are you using the root account? if not - you'll need to assign permissions to your admin users
Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#23258
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 4 Months ago  
thanks a lot...it helped...i was not login as root...now i see it in my webconfig.
thanks a lot for your help and for such a rapid response

thank you
Pramod Giri
Senior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24059
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 3 Months ago  
Great module.
I found a small bug though.
When looking at bandwidth traffic I notice that the "labels" for the rules are pushed one row below from where they are supposed to be.
It happening because the first rule from the advanced tab is displayed twice (once with it own label and once with a label from the next rule???).
It is consistent for both upload imq0 and download imq1 tables.

Instead of expected:

Upload imq0 Rate Ceiling Port IP Address
----------------------------------------------------------------------------------
1:1 (ALL) 820 820
--> 1:10 (sip) 384 820 S 5060 S X.X.X.X/24
--> 1:11 (sip) 384 820 S 5061 S X.X.X.X/24
--> 1:12 (sip) 384 820 D 5060 D X.X.X.X/24
--> 1:13 (sip) 384 820 D 5061 D X.X.X.X/24
--> 1:14 (gv_up) 256 820 D 174.X.X.X/32
--> 1:15 (Voice_up) 384 820 D 188.X.X.X/32
--> 1:2 (Other)

It looks like below:

Upload imq0 Rate Ceiling Port IP Address
----------------------------------------------------------------------------------
1:1 (ALL) 820 820
--> 1:10 (sip) 384 820 S 5060 S X.X.X.X/24
--> 1:11 (sip) 384 820 S 5061 S X.X.X.X/24
--> 1:12 (sip) 384 820 D 5060 D X.X.X.X/24
--> 1:13 (sip) 384 820 D 5061 D X.X.X.X/24
--> 1:14 (gv_up) 256 820 D 174.X.X.X/32
--> 1:15 (Voice_up) 256 820 D 174.X.X.X/32
--> 1:16 () 384 820 D 188.X.X.X/32
--> 1:2 (Other)
lelik
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24095
Re:ClearOS Module - Bandwidth (Rule) Monitor 2 Years, 3 Months ago  
Well spotted and thanks for trying it out, yes I think when you use a webconfig rule which is defined for all traffic leaving my network, it creates more than bandwidth for that 'single' webconfig entry. This causes the rules to shift down by one entry...i'll investigate and see if I can fix it.
Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1234567
  get the latest posts directly to your desktop