This site uses cookies to deliver our services and to show you relevant ads and job listings.
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.

Join us in building a kind, collaborative learning community via our updated
Code of Conduct.

I run an OpenVPN server with a 1 Gbps bandwidth and I need to limit it to 5 Mbps per user.
Searching the internet I've come up to this bash script:
$U32 = "tc filter add dev tun0 protocol ip parent ...

I have applied bandwidth control using TC and iptables using this tutorial on my Strongswan VPN server.
The bandwidth control works fine ONLY if that specific client is already connected.
For example:...

On Linux, can I use tools like tc, iptables or others to control/shape network traffic on a network interface, for the following purposes:
Control the network packet number rate (or the total number)....

I'm trying to simply delay traffic targeted for certain IP address on Ubuntu 16.06 box with no luck.
There are plenty of resources as this this this or this that I studied.
I ended up with these two ...

It looks like a subset of classless qdiscs can be combined with each other in certain configurations. In fact it doesn't make sense to me that you could not do this, since things like codel will only ...

I want to use tc prio queuing discpline for scheduling packets in a particular order.
I want to send out packets to destination port 5555 with the highest priority and packets to destination port 6666 ...

I would like to get Linux tool/script to control packet size of specific IP or MAC. For example if IP reach 10 MB then DROP packages with IP tables. I have idea how to DROP, but I don't have idea how ...

I have a StrongSwan (IKEv2) server setup and would like to limit each VPN connection to 512kb/s.
After researching I came across tc in Ubuntu. I don't quite understand it and am fighting through the ...

Following situation:
Network A is connected to network B over an slow connection.
Different hosts in network A would like to send traffic to hosts in network B.
Hosts in network B sending commands to ...

I need to simulate a traffic slow down to a certain service. That means I need to slow connection on a certain port. I have this script that introduces a delay to a certain IP on all ports, but other ...

i have access to some multipurpose machines configured to do jobs for different clients. each client is a web server. since one of my web server taking too much data traffic. this system blocks me for ...

I am having some trouble with what I believe should be a fairly straightforward traffic shaping problem.
I have an Ubuntu (16.04) server that is acting as a router/nat. I want to allow most users to ...

We'd like to simulate the impact of locality using VMs within a on a public cloud (say AWS EC2).
To do this, we would like to inject delays in packets such that we can simulate a particular network ...

I have a gateway whose OS is Linux.Assume my downlink bandwidth is 100 Mbps. I want to limit the max download speed to 1Mbps for every device which uses this gateway.In other words, if there are 100 ...

I need to limit the minimum bandwith from an IP to specific services/ports, by dropping all the packets that will not satisfy that minimum rate.
I saw the attribute rate in the HTB class of the Linux ...

I'm playing with Linux traffic control features to restrict KVM VM output bandwidth and got stuck while using filters to match destinations for a fast class and for a (default) slow class for a given ...

I am trying to set the incoming and outgoing bandwidth of a particular interface. I set the outgoing bandwidth in the following way.
sudo tc qdisc add dev f30e888e9a857_c handle 1: root htb default ...

I am doing some work relate to limit income bandwidth (ingress) of a NIC in Ubuntu 16.04. Seem like we cannot limit the income bandwidth directly but have to use IFB. In this
this post we have a good ...

I create this script to limit bandwidth all traffic through card eth1, I can test download speed with wget command but don't know how to test upload speed. Can anyone answer my question or show me how ...