J
J
jidckii2015-10-26 15:27:46
linux
jidckii, 2015-10-26 15:27:46

Shaper setting?

Good afternoon.
I want to ask for advice on the implementation of shaping on a gateway with Linux on board.
Conditionally given is the following scheme:
1445861817.png
an external channel of 50Mb / s
is necessary so that the channel to the Internet is equally cut between users on the internal interface br0 for addresses in the range 172.10.1.1 - 172.10.1.254 while the first part of the subnet 172.10.0.0/23 is not limited in any way .
At the same time, it is necessary that the local network does not suffer, since the network is gigabit and in fact there are still interfaces in them that must be routed without shaping.
I think that I don’t really need to prioritize or separate the traffic according to TOS, since basically only http / https goes.
I think to cut it like this: give 1 Mbps if the channel is busy, and 5 Mbps if it is free.
As I understand it, I will have to mark packets in iptables that are from the desired range.
I read a lot in the spirit of luxik.cdi.cz/~devik/qos/htb/manual/userg.htm
but didn’t open my eyes too much.
Please advise how best to implement such a scheme.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cool Admin, 2015-10-26
@ifaustrue

Here are two very useful articles for you:
https://www.opennet.ru/base/net/htb_saga.txt.html
habrahabr.ru/post/88624
Do you want to use RouterOS x86? (you only have to buy a license)

A
Azazel PW, 2015-10-27
@azazelpw

If this is port 80, then it can be done through squid
ACL lists and delay pools

V
Vladimir, 2015-10-27
@MechanID

Read LARTC everything is there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question