Questions tagged [tc]

TC is the linux tool used to manipulate the traffic control functionality in the kernel.

TC is the linux tool used to manipulate the traffic control functionality in the kernel.

233 questions
0
votes
0 answers

how to apply TC htb class to each of IPs in an IP range separately?

I use HTB for TC and mark packets with iptables. First I mark a range of IPs (like 192.168.1.0/24). Now I want to apply a htb class to each of these IPs separately. If I add a class and a filter for this mark, this filter applies to all IPs in this…
0
votes
2 answers

Configuring NAT with Traffic Control for Nginx/Apache on localhost, cache miss

Apache is on 127.0.100.2 and Nginx is on 127.0.100.3, with Traffic Control performing DNAT from the former to the latter (for source 127.0.0.1) and SNAT from the latter to the former (for destination 127.0.0.1): tc qdisc add dev lo root handle 1:0…
user2768
  • 41
  • 5
0
votes
1 answer

Using tc filter together with Snort

I need to add delay to packets after doing some modification using the SNORT inline module. However, I cannot seem to get the packets to match a filter using tc filter ... It always matches the default filter. The commands I am using are stated…
Chamara
  • 1
  • 2
-1
votes
1 answer

tc-qfq is classless error

I'm using Linux 3.0.101 with iproute2-3.4.0 on a router and I'm getting this error: tc qdisc add dev eth2.2 root handle 1: qfq --> OK tc class add dev eth2.2 parent 1: classid 1:10 qfq weight 1 --> Error: Qdisc "qfq" is classless. sch_qfq.ko was…
xnor
  • 101
  • 1
-1
votes
4 answers

Is there anyway to tell what user will receive data from inbound packet?

In linux, considering this use case: 1. User initiates http request for webpage to remote server 2. Remote server answers request and sends packets Is there any reference to the user who started the process that made the request to the remote…
Rooster
  • 485
  • 2
  • 7
  • 21
-2
votes
1 answer

Linux control packet size for specific IP address

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 to control packet size for specific multiple IP…
FariZ
  • 101
-2
votes
2 answers

Configure OpenVPN with many users

Similar to this question I am looking at connecting 1000's of concurrent users: OpenVPN performance: how many concurrent clients are possible? To save CPU cycles I would like to know if there is another solution outside of OpenVPN to bandwidth shape…
Server Programmer
  • 237
  • 2
  • 4
  • 11
-3
votes
1 answer

Understanding a shell script

there i am trying to understand the purpose of this shell script. If anyone can help out i would appreciate it. Thanks! This is located in android system at system/etc/throttle.sh #!/system/bin/sh # traffic control; arg1:ifname, arg2: rx, arg 3…
risto
  • 1
  • 2
1 2 3
15
16