Hello i have proxy with 3 interfaces - red (wan), green (lan), and blue (guests + wifi).
I must limit transfer for guests about - 70 % for green / 30 % for blue.
Is it possible ? I try do it with traffic shapping on interface rules but i only see one interface (red) dont see blue and green .
I mean speed transfer - no limit
yes in Code there is only RED
This feature could be a real good killing feature
Make traffic shapping for all interface, to prioritized the green over the blue lan.
And for type of traffic download, streaming, and so on.
[root@nethserver Interfaces]# db tc show
eth3=device
Description=
In=80
Out=80
eth3.999=device
Description=
In=90
Out=90
host;nas=ip
Description=
Priority=1
Sorry to disagree, but I think you are misunderstanding how traffic shaping works.
It can be handled only on red interfaces.
From shorewall manual ( http://shorewall.net/simple_traffic_shaping.html ):
Simple Traffic Shaping is only appropriate on interfaces where output queuing occurs. As a consequence, you usually only use it on extermal interfaces.
Still, we can implement what you are asking for, but it should be done in a different way. We can extended the âAddress rulesâ tab inside the âTraffic shapingâ page by allowing the creation of rules based on CIDR objects.
Regarding the pull request by @Nas, probably the part about VLAN can be accepted (but it should be tested if Shorewall complains about it); sadly, the blue part should be removed.
Ok thanks for help. Thats bad Then can i make something to limit download speed for this interface (blue) in proxy or firewall ?
Proxy still doesnât have such a feature, but squid already supports it.
If you want, I can post a template-custom to lower the priority of the blue network.
No template-custom is needed, just a little workaround:
-
create a cidr firewall object called âbluenetâ
-
execute this command
db tc set "cidr;bluenet" ip Description "Low priority blue net" Priority 3 signal-event firewall-adjust
Now you should see a new rule called âLow priority blue netâ in the Traffic shaping page
It would be definitely nice since itâs a very requested feature as @davide_marini can confirm
Ok thanks. I only ask.
- When i execute this command, on my traffic shapping appear new rule âLow priority blue netâ and blue interface at the moment will be working with prioryty 3 ? right?
- Default priority on all interfaces is 10 (without this command) ?
- when something do wrong with this command How can I undo this operation?
Thanks for reply
Kindly use :
db tc delete "cidr;bluenet" ip Description "Low priority blue net" Priority 3
- Yes itâs right.
- Yes itâs right
- You can delete the rule by the UI as well
Okey thanks for help.
Let me know it works or not marking the thread as resolved
Okey
I make on âfirewall objectsâ on tab âCIDR subnetsâ new rule called âbluenetâ , network â192.168.0.1/24â.
Next i open ssh and execute: db tc set "cidr;bluenet" ip Description "Low priority blue net" Priority 3 signal-event firewall-adjust
When i go to âtraffic shappingâ to âaddress rulesâ tab i see:
Address: CIDR network bluenet
Priority: Low
Description: Low priority bluenet
and i can now manually change prioryty by EDIT button: Low, Medium, High
Nice work
but i dont know how to check if it works?
I think you should start a download from the green and from the blue seeing the different priority and bandwidth