Questions tagged [traffic-shaping]

Traffic shaping is a technique to delay some or all datagrams to comply with desired traffic profile.

Traffic shaping is a network traffic management technique which delay some or all datagrams to bring them into compliance with a desired traffic profile. Traffic shaping is used to optimize or guarantee performance, improve latency, and/or increase usable bandwidth for some kinds of packets by delaying other kinds.

232 questions
2
votes
1 answer

Limit traffic on by user OpenVPN server using tc (traffic control)

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 1:0 prio 1 u32" tc qdisc add dev tun0 root handle…
DomeWTF
  • 127
  • 2
2
votes
2 answers

Limit packet rate, open connections, and IP addresses

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). Control the number of IP addresses connected…
2
votes
2 answers

Odd traffic behavior of statically entered mac addresses over cisco 3750 vlans

At my workplace we use cisco switches to a implement a custom traffic delivery mechanism at layer 2. Custom software puts specific destination macs on ethernet frames and vlans segregate the traffic to different locations while static mac-address…
user27388
  • 41
  • 1
  • 4
2
votes
1 answer

tc police rate packets by iptables handle?

I want to limit download speed from any IP to 800kbit, (this works) And I want to limit the download speed of marked packets to 400kbit. I don't get any errors, but it's not limiting the download speed of the packets marked with number 30. I've…
2
votes
1 answer

Minimum bandwidth limit on Linux systems

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 tc traffic shaping tool should do this; is it the…
2
votes
1 answer

QOS with iptables and tc with unstable WAN

I have a router/gateway under Linux, I want to add some QoS to reserve bandwidth for a specific flow. This can be done with iptables/netfilter and tc, but all examples start from the fact that you know in advance the total bandwidth…
2
votes
1 answer

QoS Traffic Shaping based on packet loss and latency for VPN

I am currently having the following situation: I am using a VPN (OpenVPN) over a rather unstable internet connection. This means the maximum bandwidth varies between 100kbs and 1mbit. Whenever the connection is rather unstable and there is high…
2
votes
6 answers

Rate limiting an internet connection per user

I've got a friend who has a "rent-by-room" property and includes internet access as part of this. However some tenants are somewhat hogging the internet (i.e. constantly downloading). I was wondering if anyone knows of a fairly easy way of rate…
Alister
  • 131
  • 1
  • 5
2
votes
1 answer

Use traffic shaping with tc on debian jessie to limit only one virtual IP

My server has multiple IPs on which only one is mapper to the inbound physical interface eth0. Other IPs are handled in a virtual manner via iptables/DNAT. I want to limit the traffic to one of my lxc containers called "service1" (192.168.123.2…
rubo77
  • 2,282
  • 3
  • 32
  • 63
2
votes
1 answer

Traffic shaping outbound clients source ip with tc / iptables

My question is I am trying to limit a users bandwidth on a server and wondering the best way to do this. Before I dive to far into the tc/iptables I was wondering if I could get any advice on this and if someone could give me a sample config that…
dryve
  • 23
  • 3
2
votes
1 answer

Implementing HTB, NetEM, and TBF traffic control simultaneously

I am working on a bash utility that will use several aspects of the tc Linux command line utility to emulate various network conditions. I have successfully constructed several qdisc hierarchies, one each for HTB bandwidth control, NetEM delay and…
Ian
  • 93
  • 1
  • 6
2
votes
0 answers

iptables & tc limit both upload & download together

I have the following for iptables & tc but it limits the upload speed to 2Mbits once the quota of 1GB has been hit. iptables -t mangle -A POSTROUTING -o eth0 -p tcp -m owner --uid-owner aaron -m quota --quota 1073741824 -j ACCEPT iptables -t mangle…
whisky
  • 121
  • 2
2
votes
0 answers

How to share bandwidth equitably between 16 users on a pfsense multi-WAN router

I have 16 users connected to my pfSense single-LAN, 3-WAN router. The 3 WAN ports connect to ADSL lines giving about 4Mb/s down, 800kb/s up each. I would like to prevent any one user hogging the available bandwidth, while at the same time allowing a…
Nikki Locke
  • 169
  • 1
  • 9
2
votes
2 answers

Bridge NICs with automatic pass-through

I am looking at using a computer with a dual-NIC card (one with two NIC ports) as an in-line traffic shaper / URL filter / traffic analyzer, etc. (probably using pfSense), but I am concerned that if this computer for whatever reason goes down, no…
Laban
  • 21
  • 2
2
votes
0 answers

Ubuntu traffic shaping by source mac address or destination host

Is there an easy way to manage traffic shaping/bandwidth monitoring to limit traffic based on source mac address and/or destination server address?
Billy Moon
  • 1,417
  • 3
  • 17
  • 23