Displaying 20 results from an estimated 3000 matches similar to: "Deleting a tc filter rule"
2007 Jun 08
5
CBQ + Layer7 x Emule
Hi All ,
My first message and I have a little problem with my FC6 box trying to block
emule traffic using layer7 .
Here my network :
Internet --------- ADSL Router ------------------- FC6 Box
-------------------- Emule Box
external ADSL : Dynamic
Internal ADSL : 192.168.254.1
external FC6 : 192.168.254.3
internal FC6 : 192.168.253.1
Emule Box : 192.168.253.3
I guess that everything
2007 Jun 11
7
shaping using source IP after NAT
Hi all
I am using a pass trhu router and I need to QoS some clients output by its
IP address. The problem is that QoS is due after NATing.
Is there some clever way of doing this besides MARKing every packet with
some IP hashing in POSTROUTING NAT table?
Regards
Ethy
2005 Jan 27
1
question about filter priorities and "tc -d filter show" output
The interface is setup like this:
# tc qdisc del dev eth0 root
# tc qdisc add dev eth0 root handle 1: htb default 2
# tc class add dev eth0 parent 1: classid 1:2 htb rate 20mbit ceil 20mbit
If I add a second class and a filter to send traffic to it like this:
# tc class add dev eth0 parent 1: classid 1:130 htb rate 1Mbit ceil 1Mbit
# tc filter add dev eth0 protocol ip parent 1:0 prio 130 u32
2007 Jun 06
3
elementary usage clamping
I''m pretty smart, and was once regarded as pretty network and computer
savvy. But the world has obviously passed me by!
I have a server in a colocation facility, and I was recently hit by a
bill for overage; I used more bandwidth than I expected, and I must
pay.
So now, I want to bother with packet shaping on the server. The *most*
important thing is to clamp bandwidth to the 1Mbps
2005 Oct 17
5
TC show filter command shows all u32 filters defined with different priority iin all priority.
Hi,
I am currently working on the TC.
I have seen some behaviour which seems to be odd.
I know someone in the mailing list would have seen this problem or may
have some fix for this problem.
When I try to include u32 filters with different priority or pref, I
could see the filters being set on all the priority''s irrespective of
the priority number.
See my sample script below and the
2007 Nov 20
3
Problem deleting tc rules
Hi all! :)
I see that this is partially covered in the mailing list archive
but at the moment I can''t find a straight & working answer.
I have an imq device with dynamically attacched classes/qdiscs/filters.
There is a hashing filter that maps the last octet of an user''s IP address
to a class (and associated qdisc). The "empty" filter looks like this:
filter
2007 Feb 17
4
Order of ''tc filer''
Hi
How can I control which filter a packet will meet first?
I have tried changing the order of applying the tc filter scripts and
switching flowid number, but ''protocol ip u32 match ip src <ip net>
match ip src 0.0.0.0/0'' always kicks in first?
>From my script
--------------------
# All traffic - Priority: Low
tc filter add dev eth0 parent 1:0 prio 2 protocol ip u32
2003 Oct 31
2
tc filter oddities
I shape my upstream cable link with HTB from a script. My voip traffic
(from the 192.168.0.14 host) gets priority over everything else to the
near-starvation of other classes; the rest of the traffic is split up
based on some priority rules (qos, empty ack packets, etc). eth1 is the
uplink
I''ve been using HTB and fw marking for the job until recently, when I
changed the queue structure
2007 Sep 05
6
NAT-aware traffic analysis
I have tried using iptraf for my NAT firewall to analyse the IP traffic.
Basically I am faced with this difficulty of related the source IP
to the outgoing interface to the internet, so I am wondering if
anyone has a suggestion for a different ways to do it, or a suggestion
for a better tool.
Details :-
Supposed : eth0 - LAN
eth1 - WAN1
eth2 - WAN2
And then
2007 Oct 28
3
tc filter question
Dear all,
I have big question in my mind about "tc filter" sintax. If I give "tc -s -d
filter sh dev eth0" command, then the output is like below :
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt
0 flowid 1:2 (rule hit 21553629
success 37907)
2007 Jun 21
0
How do you delete a filter?
Hi,
I am very new to tc. I added a filter using the following command:
tc filter add dev eth0 V parent 20:0 protocol ip prio 1 handle ::128 u32
match ip tos 0x44 0xfc flowid 20:1
To check if the filter rule was indeed added, I run
tc filter show dev eth0 parent 20:
This gave me the following output:
filter protocol ip
2004 Nov 30
1
tc del filter
Hi,
How can I delete an existing filter? Is it possible?
I tried different combinations of tc commands but, while
manage to delete an existing qdisc or class, I wasn''t able
to find a way to delete an existing filter.
The tc man page doesn''t even list the del command in the
synopsis.
tc filter [ add | change | replace ] \
dev DEV [ parent qdisc-id | root ] \
2005 Jan 24
3
tc filter change/replace
I am wondering whether the commands ''tc filter change'' and ''tc filter replace''
are working. Googling around revealed a few emails on the LARTC stating that
unfoirtunately they do not work. A quick check showed that they are still not
implemented (properly).
Some propose a solution to build a second tree of filters and apply the 2nd
one when a need for it
2007 Jun 09
7
vlan interfaces and tc
Hello
I have few questions regarding tc functionality (qdiscs, classes, etc.) when
vlans are in use. For example, consider interface eth0, for which I create
and extra vlan with vconfig, let''s say eth0.11. Then using tc I can add
usual things - qdiscs, filters, ... - to both eth0 and eth0.11. The
questions are:
- on which interface - virtual or real, should I actually use tc ? Or
2005 Jun 01
2
TC Filtering Problems
Dear Admins and Hackers,
maybe i am to stupid to use ''tc''. But i having logical Problems to understand the Filter Rules in tc.
Common Config:
There is a Linux Engine (Debian) with a 2.6.11.11 Kernel which act as Packetshaper.
Two Interfaces eth0 and eth1 are installed. Interface ''eth0'' is the Firewall Side Net
195.185.185.0/24. Interface
2007 Sep 18
1
htb on Gigabit Interfaces
Hi every body
I have a linux server with Intel(R) Xeon(TM) CPU 3.20GHz , and 2 Gigabit
of RAM , kernel version 2.6.22.6 , and 2 Intel 82541PI Gigabit Ethernet
controllers
In simple situation i would like to limit bandwidth for 2 customers 1) (
to 34 Mb/s ) and 2) 68 Mb/s .
My conf is as below
/////////////////////////////////////////////////////
#IFACE FACONG THE CUSTOMERS
/sbin/tc
2005 Dec 16
2
tc filter match u8 problem??
Hi All
Can someone tell me what am I doing wrong?
These was suposed to catch icmp type 8. Why ''match u8'' does not work?
# tc filter add dev eth0 protocol ip parent 1: prio 2 \
u32 \
match u16 0x0800 0xffff at -2 \
match u8 8 0xff at 20 \
flowid 1:5
Illegal "match"
#
# tc filter add dev eth0 protocol ip parent 1: prio 2 \
u32 \
match
2005 Dec 09
0
error in TC FILTER documentation ???
I''ve done some tests with TC FILTER and his PRIO
and think that is an error or OMISION on TC FILTER DOCUMENTATION
from: http://lartc.org/howto/lartc.qdisc.filters.html#AEN1100
Let''s say we have a PRIO qdisc called ''10:'' which contains three
classes, and we want to assign all traffic from and to port 22
to the highest priority band, the filters would be:
2006 Feb 10
14
[PATCH] TC: bug fixes to the "sample" clause
PATCH 1
=======
On my machine tc does not parse filter "sample" for the u32
filter. Eg:
tc filter add dev eth2 parent 1:0 protocol ip prio 1 u32 ht 801: \
classid 1:3 \
sample ip protocol 1 0xff match ip protocol 1 0xff
Illegal "sample"
The reason is a missing memset. This patch fixes it.
diff -Nur iproute-20051007.keep/tc/f_u32.c iproute-20051007/tc/f_u32.c
2005 Oct 16
2
Lost packets and strange "behaviour" of my TC rules
Hi all.
I''m going on my 3rd week trying to get a simple traffic shapping to work the right way :( !!
My goal it to shape the traffic coming from one machine (pc1) to another machine (pc2) throught the "eth0" interface. My test configuration is as follows:
PC1
IP: 192.168.105.237
Mask: 255.255.255.0
OS: Red Hat Linux Kernel 2.4.20-8
Rules: