All Questions
30
questions
0
votes
0
answers
98
views
Any way to limit bandwidth per IP in network behind linux router
I whant to limit bandwith of clients from network behind my linux based NAT gateway.
My clints is connected via wifi or directly via ethernet to router and receiving their IP address from DHCP.
I want ...
0
votes
1
answer
1k
views
Limit bandwidth for incoming packets to specific ip and port
I have a Linux server application running on a specific IP and PORT.
Incoming packets need to be manipulated and put into an nfqueue based on sources and ports, for example:
iptables -t raw -A ...
1
vote
0
answers
239
views
How can I limit incoming/outgoing connection speeds based off IPs?
I want to limit the speed each IP can download/upload files for every application on my server to 1Mb/s
Example IP 192.168.0.1 is downloading at sustained 900Kb/s through FTP server if the IP then ...
1
vote
1
answer
127
views
Does tc guarantee network bandwidth for a process or run as best effort?
I have a tc rule as follows:
qdisc tbf 1: dev bwp93ce2ea9d929 root refcnt 2 rate 100Mbit burst 100Kb lat 25.0ms
Is this rule guarantee network bandwidth to be 100Mbps or it'll throttle if not enough ...
4
votes
1
answer
1k
views
Using tc to decrease bandwidth to a specific destination address
I am trying to find the shortest path between two hosts H1 and H2 using Dijkstra code. Setting a condition in one of the switches on that path.
the condition is: if the packet sending to H2 then ...
0
votes
1
answer
3k
views
Link bandwidth limiting by using tc
I am a newbie network engineer.
I am trying to understand the Linux command tc.
I made a simple network, consisting of two hosts H1, H2 and a switch S1 connecting them by using Mininet.
Then, I ...
0
votes
0
answers
204
views
How to slow traffic on a proxy?
I'm trying to slow down the traffic on my TCP forking proxy.
The code is no longer located on the proxy, I'm still testing on my laptop; all HTTP(S) requests on Chrome are redirected with ...
1
vote
1
answer
3k
views
Limit bandwidth per connection in Linux
I wasn't really able to google this which surprises me but maybe I was just looking the wrong way... I would like to limit bandwidth per one TCP connection ie. all the connections are coming to a ...
1
vote
0
answers
938
views
TC not classifying packets correctly based on iptables MARK
I have machineA that is connected to the internet via eth0. MachineB on the other hand is connected to machineA through a mesh and is connected to the internet via machineA. I am trying to give lower ...
0
votes
1
answer
358
views
Bash Script Not Working
I hope this is an easy answer
Problems:
I placed the following bash script called learn-address.sh in the following folder:
vi /etc/openvpn/netem/learn-address.sh
Added the following (2) lines ...
4
votes
1
answer
17k
views
How to do traffic shaping (rate limiting) with TC per OpenVPN client
This question is related to another question with a great answer and script from @Oliver.
The goal: I want to modify/extend the script provided in this answer to suit my requirements, which are as ...
2
votes
1
answer
366
views
Bandwidth throttling linux to external subnets
I am looking to start up a new open-source mirror for my enterprise, but would also be interested in opening it up for external clients as well. However, for obvious reasons, I would like to limit ...
0
votes
0
answers
244
views
Bandwidth Policing on Linux gateway - not QoS
I have a linux server providing NAT to a large subnet (/16) using iptables to-destination + multiple external ip's to survive port exhaustion.
I've looked at using tc / htb such as here Limiting ...
0
votes
1
answer
231
views
Linux Traffic Shaping: ceil rate never reached
My application run on port 8080. I have this iptables command:
iptables -A OUTPUT -t mangle -p tcp --sport 8080 -j MARK --set-mark 10
I have also theses TC rules:
tc qdisc add dev eth0 root handle ...
1
vote
0
answers
402
views
Group traffic shaping with traffic control?
I'm trying to limit the output bandwidth generated by an application with linux tc. This application sends me the source port of the request that I use has a filter to limit each user at a given ...
0
votes
1
answer
316
views
Is it possible to limit output bandwidth between eth0 and lo?
I'm trying to limit the bandwidth between my eth0 output (nginx proxy) to my loopback inteface (apache) by filtering on destination port.
Incoming Packet -> Eth0 -> 0.0.0.0:80 Nginx -> tc ...
2
votes
0
answers
585
views
HTB equal bandwith sharing per ip in one class
In my tc configuration (shown below) in one class all bandwidth is shared among connections equally, but I want to share bandwidth among all IP addresses equally.
Now:
192.168.0.2 - 38KB/s
192.168.0....
2
votes
1
answer
2k
views
Openvpn limit bandwidth
I would like to ask you a question concerning openvpn and the possibility to increase the bandwidth in case I want to transfer files.
I have an openvpn server via which I connect to my data center. ...
2
votes
0
answers
143
views
Is It Possible to Attach multiple Ports to a TC Filter?
I need to limit the bandwidth/rate by ports, and as a server there would be thousands of ports. Due to the limit of tc filter, I wonder if it is possible for multiple discreate ports to share a same ...
1
vote
1
answer
79
views
How Many Filters Can We Have -- LINUX QOS
I am doing Qos on Linux server using TC. According to the grammar of tc tool, the handle of a filter must be between 800::001 and 800::FFF. And because 0XFFF equals 4095 in decimal, so we can only ...
1
vote
0
answers
575
views
Why Parent Class In a TC Rules Tree Not Working
The parent class in my TC rules script doesn't work as it garanteed! Can somebody tell me what is wrong with my script? Here are some details about my question:
From the chapter "9.5.4.4. Sample ...
0
votes
1
answer
1k
views
Why This TC Script Not Working
Our application has three classes of traffic, and every type of traffic involves three ports. We want to limit the traffic by port number via TC, so I made a simple TC script to have the test, however ...
0
votes
1
answer
837
views
What do these two QOS script statements mean
I am studying the QOS utility of Linux -- TC -- recently, and today I encountered below two statments from a bandwidth-limit script on Linux:
tc filter add dev eth0 parent 1: prio 1 protocol ip ...
1
vote
1
answer
2k
views
Can TC limit bandwidth by the Qos field of IP header
We are developing a client/server applications. There are three types of network data in our server app: Realtime data such as those of Video/audio, Critical Data such as those of Database data and ...
3
votes
2
answers
1k
views
Can TC (Linux Qos Utility) limit bandwidth usage of target applications?
We have many applications running on the same server machine which is inside a network of servers. We want limit the bandwidth of our applications to specific value. So here are some choices: ...
3
votes
2
answers
4k
views
how to limit upload bandwidth per user in linux?
Can anyone provide the tc command to limit upload bandwidth per user in Debian Lenny?
I found that to mark packets per user with iptables I can use the following command
iptables -t mangle -A OUTPUT ...
4
votes
2
answers
7k
views
Limiting bandwidth on internal interface on Linux gateway
I am responsible for a Linux-based (it runs Debian) branch office router that takes a single high-speed Internet connection (eth2) and turns it into about 20 internal networks, each with a seperate ...
5
votes
2
answers
4k
views
lxc bandwidth control using tc
I am trying to restrict bandwidth inside my containers.
I have tried using the following commands , But I think it is not getting effective.
cd /sys/fs/cgroup/net_cls/
echo 0x1001 > A/net_cls....
1
vote
2
answers
9k
views
Tool to monitor bandwidth utilization per traffic (tc) class on linux
Some time in the past, i came across a siple tool that showed live in a 1sec interval, in human readable format, the bandwidth utilization seperated per tc class on your linux server. Unfortunately, i ...
1
vote
2
answers
3k
views
Bash Script - Traffic Shaping
hey all, I was wondering if you could have a look at my script and help me add a few things to it,
How do I get it to find how many active ethernet ports I have? and how do I filter more than 1 ...