Forums

Kiki Gak2
Kiki Gak2
Offline
Resolved
0 votes
I'm using this app on ClearOS5? and ClearOS6 to limit 500*-1000** kbps download and upload for specific IPs(range/network) for whatever they do, using the guide below, but now it's not working.

1. Is Bandwidth Manager Advance Rules still not yet supported on ClearOS7?
2. If not, is there a workaround?

Type: Advanced
Nickname: web_hog
Direction: Flowing to the network
Match Address: Destination - 192.168.1.100
Match Port: Source - 80
Rate: 200 kbps
Ceiling: 200 kbps
Greed: Medium


*500 kbps for Hot LAN / Guest Network
**1000 kbps for specific IPs on Private LAN

https://www.clearos.com/resources/documentation/clearos/content:en_us:6_bandwidth_manager
Tuesday, September 11 2018, 07:06 AM
Share this post:

Accepted Answer

Kiki Gak2
Kiki Gak2
Offline
Wednesday, September 12 2018, 02:06 AM - #Permalink
Resolved
0 votes
for PrivateLAN specific IPs:

ssh:
tc qdisc add dev eno1 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eno1 parent 1: classid 1:1 cbq rate 512kbit allot 1500 prio 5 bounded isolated
tc filter add dev eno1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.8 flowid 1:1
tc filter add dev eno1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.81 flowid 1:1
tc filter add dev eno1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.96 flowid 1:1
tc filter add dev eno1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.144 flowid 1:1
tc filter add dev eno1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.151 flowid 1:1

crontab(allow 2mbit at 12:15pm-1:15pm):
15 13 * * * /sbin/tc class change dev eno1 classid 1:1 cbq rate 0.5mbit allot 1500 prio 5 bounded isolated
15 12 * * * /sbin/tc class change dev eno1 classid 1:1 cbq rate 2mbit allot 1500 prio 5 bounded isolated
The reply is currently minimized Show
Responses (9)
  • Accepted Answer

    Flash
    Flash
    Offline
    Friday, January 25 2019, 09:55 AM - #Permalink
    Resolved
    0 votes
    I have a problem with installing ClearOS 6.7.

    It says:

    Unable to read group information from repositories. This is a problem with the generation of your install tree.

    Like in this link: https://www.clearos.com/clearfoundation/social/community/errors-installing-clearos-6-7-unable-to-read-group-information-from-repositories/oldest#filter-sort
    The reply is currently minimized Show
  • Accepted Answer

    Flash
    Flash
    Offline
    Thursday, January 24 2019, 09:33 PM - #Permalink
    Resolved
    0 votes
    Ok, thank you.

    September this year? Maybe till then, the developers will come to their senses and they will realize how stupid it was, not to implement old Bandwidth Manager in ClearOS7.X and will implement it back so that it would work, like it worked in ClearOS5.2. ;) :p
    If I was in charge of ClearOS, I would fire that developer, that came up with the idea of ditching old Bandwidth Manager, ASAP... ;) :p :D

    Yes, I did look at that file, I'm sorry, it's to complicated for me, I'm not an expert.
    I don't know, is it so hard to do like for example: Interface, Nickname, IP, Upload/Download, Speed, and that's it. Why make things complicated? :o

    Thank you very much
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 24 2019, 03:46 PM - #Permalink
    Resolved
    0 votes
    Use the link for 6.7. It will upgrade itself to 6.9.

    The down-side of 6.x is that it goes end of life in September and will receive no more updates from then.

    Did you look at the file I mentioned to see if you could use it as a bandwidth limiter?
    The reply is currently minimized Show
  • Accepted Answer

    Flash
    Flash
    Offline
    Thursday, January 24 2019, 03:17 PM - #Permalink
    Resolved
    0 votes
    Hello Nick

    For me, the old Bandwidth Manager has only pros. I don't need VoIP, I just want to limit bandwidth to specific IP's or range of IP's.
    It's a shame that such a great tool won't be available anymore... :( Why can't there be both of them, the better one (old) and the worst one (new)? :)
    And let users decide which they want.

    So the last version of ClearOS that supported old Bandwidth Manager was 6.9.0? Or which?
    Can you please give me a link, because I only found 6.7.

    Thank you
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 24 2019, 08:53 AM - #Permalink
    Resolved
    0 votes
    The old bandwidth manager had its pros and cons. The new one is much better in some situations such as VoIP, but it appears to be quite processor intensive. It is possible to limit the bandwidth to certain machines. Check the /etc/clearos/qos.conf for more info.

    The bandwidth manager will not be reverting as far as I know, but it will be moving away from the IMQ method with requires the kernel to be patched, and move over to a mainstream kernel method, which I understand is pretty much compatible with the current Webconfig.
    The reply is currently minimized Show
  • Accepted Answer

    Flash
    Flash
    Offline
    Wednesday, January 23 2019, 08:34 PM - #Permalink
    Resolved
    0 votes
    Hello

    Can anybody please tell me, why the old Bandwidth Manager isn't working any more in ClearOS7.x?
    Many years back, when I was searching for this, I found ClearOS5, and it was working like a charm. Very easy to configure, just put in a few numbers and that was it. This was the whole reason I installed ClearOS.
    But now in ClearOS7 it doesn't work any more. :(
    I would like to limit traffic for specific IP's.

    Will there be any fix for this? If not, can someone please recommend me another free Linux distribution with easy to set Bandwidth Manager, like it was in ClearOS5?

    Thank you very much
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 12 2018, 07:10 AM - #Permalink
    Resolved
    0 votes
    Thanks, Kiki Gak2. I've linked you post into the documentation.
    The reply is currently minimized Show
  • Accepted Answer

    Kiki Gak2
    Kiki Gak2
    Offline
    Tuesday, September 11 2018, 08:12 AM - #Permalink
    Resolved
    0 votes
    for HotLAN:
    I set download and upload limit on UniFi AP itself and it's working.

    for PrivateLAN specific IPs:
    Still wandering... :p
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 11 2018, 07:30 AM - #Permalink
    Resolved
    0 votes
    The bandwidth manager completely changed in ClearOS 7.x and is now closer to a QoS manager and traffic prioritising service rather than a service managing device bandwidths. In its current form it is far more suitable for services such as VoIP, but you can no longer control individual devices to specific limits. All you can do is allocate devices to different priority levels.
    The reply is currently minimized Show
Your Reply