Limit the Internet speed

NethServer Version: 7.7.1908

Greetings. There was a need to limit the Internet speed for 1 IP. How can I do that?

1 Like

You have to set QoS

1 Like

Have a look here: http://docs.nethserver.org/en/latest/firewall.html#traffic-shaping
I think this is what you’re looking for.

EDIT:
To set the connection speed in cockpit, go to firewall/WAN and click on the red interface, if not already done. :wink:

2 Likes

In this times Internetspped is limited by them self an by virus :wink: only a joke.

You need QoS -> Quality of service

So can limit by IP or by service.

This function is part of your router (normaly)

Your router can be a part of Neth …
I am using a external one

I need to restrict the IP that is on the GREEN network.
P.S.
I could not find QoS in NS.

Hello Valeriy

Ntopng shoud be the package. Nomaly it is a part of the router.
but never try it :frowning:
I am using a AVM 7590 VDSL Modem and router, it is a part there…

1st create a class like this:
grafik
Limit bandwith to i.e. 50%

2nd create a rule like this:
grafik
Leave service clear to set ANY.

Now the IP you specified in Source is limited to 50%. Also possibel to give “kbit” in class.
If you want to limit the hole green network, give green as source.

Traffic shapping = fireQoS = QoS = Quality of Sevice. Config file is in /etc/firehol/fireqos.conf
You can specify min and max rates there. In this case you want to give a max rate IIUC.

2 Likes

Where exactly should I do this?

Goto to applications, open firewall settings, goto Traffic Shaping

1st crerate a class / 2nd create a priority rule

1 Like

Hi @Valeriy, did you manage to limit internet bandwidth of the specific IP?

No. This does not work. I created the rules, but the speed does not change.


Did you set up- and download bandwidth to te real values in firewall/WAN? => see red aroows in the pic.
Without that traffic-shapping won’t work.
I assume you did apply the rules before testing. :wink:

I tested this and it works, so there must be a missconfiguration at your system.

3 Likes

Thanks for the help. Now everything works!
P.S.
This must be added to WIKI.

Do you think that documentation on that is not enough?
https://docs.nethserver.org/en/v7/firewall2.html