Displaying 20 results from an estimated 8000 matches similar to: "prerouting does not effect filtering"
2005 Dec 10
10
Marking packets by mac addr using tc filter u32 match?
Hi
Is there a way of marking packets by mac address instead of ip or ports
using a "tc filter u32 match"?
I read somewhere that I could use the offset -8 and -14 to grab the mac
addresses but if I use anything lower than -8, for example -9, I get an
error.
I''m modifying the wondershaper script to cap the download speed by mac
address.
Any sugestions?
2003 Nov 13
1
HTB traffic shaping + squid cache proxy
Hello!
My system is:
Internet ADSL(PPPoE) ---> ppp0 [LINUX server(router)] eth0 ---> LAN
Server(router) is running on LINUX Slackware 8.1. I have recompiled a
2.4.22 kernel, enabled all QoS support in the kernel config,
including HTB. My ADSL bandwidth is 256Kbit/s for download and
64Kbit/s for upload.
I use the following HTB+IPTABLES configuration, because I want to
reduce bandwith for
2004 Dec 21
18
Weighted packet shaping?
Hi all,
Im new to all this, and am still trying to get my head qround some of the
concepts of how this all works.
Ive read the howto''s, man pages etc.
Ive setup packet shaping on my router/server box using HTB and SFQ, but its not
working the way i would like.
Im after shaping that has "weights" for classes so that a lower priority class
will slow down when a higher class
2005 May 12
9
IPTables script
Hi All,
I''ve been playing with QOS for a short while now and have worked out how to do
what I want using HTB. Great queuing discipline btw.
My problem is the tc filters I want to setup aren''t working because
iptables is getting to the packets first and mangling the src address.
The iptables script I am using is MonMotha''s Firewall 2.3.8 and it includes
lots of nice
2003 Aug 08
1
Looking for a good htb traffic shaping script to prioritize incoming traffic
I am looking for a good htb traffic shaping script to prioritize incoming
traffic over outgoing traffic for my machine. I have a 100mbit line, ftp
up, backup data comming in, but whenever mirrors starts grabbing it they use
all the traffic and the backup data comming in (the important data) drops to
like 300kb/sec. I was thinking some script doing
sleep 60
[if downstream > 1mb/sec, limit
2004 Oct 28
12
HTB: Problem with excess bandwidth distribution
Hello,
I have a serious problem with HTB which I wasn''t able to solve myself.
I run a masquerading router with ppp0 as interface to the Internet.
Three clients need to share a downstream of 1 MBit, which I want
to divide with tc.
When I see a packet being forwarded to one of these clients, I give
it the appropriate unique mark:
iptables -t mangle -A FORWARD -d 192.168.34.141 -j MARK
2004 Nov 25
1
Shaping with htb and VLAN
Hello
At first I must tell you that I´m a real newbie with Linux (and english as well...)
I´m using 2 vlans and shaping works quite well without vlan
Now I want to do load balancing at these vlans.
Any vlan should get the same minimum/maximum bandwidth of download and use the bandwidth that isn´t used by the other one at the moment.
But with vlan the shaping doesn´t work.
Can you please tell me
2002 Jun 18
7
Better filtering to a class
Dear all,
I want to make a filter for all IRC-Dalnet traffic, so I want to put all
traffic for port 6660, 6661, 6662, 6663, 6664, 6665, 6666, 6667, 6668, 6669,
7000, 7001, 7002, and 8000 to a class. So, I create a TC script as below.
I''m sure, it is not effective, and we can write it in simpler.
I need help, how to make my script below are simpler.
The simpler, the better.
Thank you
2004 Nov 01
1
Big problem :(((((
Hello!
I have an internet connection of 64kbps garanteed in a channel of 256kbps. On this connection the metropolitan speed is 10Mbps and in the provider''s network the speed is 100Mbps.
I have a few clients behind my linux box and i want to set up some limitations because some of them are using it irrational.
I am marking the packets with 0 for internet; 1 for metropolitan 2 for
2002 Dec 03
4
Multiple classes
I''m trying to implement something similar the the diagram in section
9.5.2.1 in the LARTC HOWTO, but must have missed something somewhere :(
I''m trying to hack up wondershaper, as it looked like a good place to
start.. Here''s where I currently at, but I''ve tried alot of different
things, all failing, some worse than others. The end result is to throttle
back 126
2006 Sep 16
1
Wondershaper Errors
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all!
when I activate wondershaper on my dsl connection (pppoa vc mux), i get
three errors:
# sh -x /usr/sbin/wshaper ppp0
+ /usr/sbin/xmlstarter setenv tc_downlink
+ DOWNLINK=
+ /usr/sbin/xmlstarter setenv tc_uplink
+ UPLINK=
+ [ -z ]
+ cat /proc/avalanche/avsar_modem_stats
+ grep Connection Rate
+ awk {printf("%d", $8)}
+
2004 Oct 08
1
Ceiling question
Hi!
I have a setup where I want to prefer traffic on one port (for testing
purposes I used port 22)
my setup is :
tc qdisc add dev eth3 root handle 1: htb default 30
tc class add dev eth3 parent 1: classid 1:1 htb rate 96mbit burst 15k
tc class add dev eth3 parent 1: classid 1:7 htb rate 2mbit burst 15k
tc class add dev eth3 parent 1:1 classid 1:10 htb rate 96mbit burst 15k
tc class add dev
2000 Nov 18
9
priority bands don't reduce interactive latency?
I run a small Linux webserver and NAT router from my cable modem at home.
Whenever someone starts an http download, all other traffic from my LAN is
starved. Bandwidth is not really an issue, but latency is particularly
horrible -- pings that usually come back in 20ms can take up to 600ms while
the web server is active!
I set up QoS (netfilter+iproute2) on the NAT machine in an attempt to give
2002 Oct 17
18
why dont packets go where i want?
Dear All!
I reach the point that I must ask you what I have to do. I am beginner at
traffic shaping and I''m very confused with it. :)
Here''s my script that doesn''t do what I want to do with it:
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1 htb default 2 r2q 10
tc class add dev eth1 parent 1: classid 1:1 htb rate 300kbit
tc class add dev eth1 parent 1:
2002 Aug 07
11
pb with ingress policy
Hi !
I have a single host which is connected via an 512kbit ADSL link to the n=
et. I quite often use some realaudio application that uses some bandwidth =
and I want to avoid other traffic to scale that bandwidth down. So I used =
some classes (with htb) on imq0 device and applied some filters and it see=
ms to work in most cases. However, there are some sites with which downloa=
d is
2007 Jan 19
3
HTB? (NEWBIE)
Hi to all
I am studying HTB on LARTC how to. I realize a simple configuration on
router:
tc qdisc add dev eth0 root handle 1: htb default 30
tc class add dev eth0 parent 1: classid 1:1 htb rate 3mbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 2mbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 1mbit burst 15k
tc qdisc add dev eth0 parent 1:10 handle 10: sfq
2004 Oct 10
3
How to invert tc matches?
Hi,
I want to use inverted matches with tc-filter. I tried to invert the
matches with a "!", but this doesn''t seem to be the correct syntax.
The following rules don''t work:
---------------------------snip-----------------------------------------
$TC filter $ACTION dev $DEV protocol ip parent 1:0 u32 match ip src
${NETWORK[$i]} !match ip dst 192.168.0.0/24 flowid
2005 Feb 06
2
problems with u32 fiter
hello to all
i''m trying to set a filter but doesn''t want to work.
i''ve set ut the qdiscs and the classes like this :
tc qdisc add dev ppp0 root handle 1: htb default 20
tc class add dev ppp0 parent 1: classid 1:1 htb rate 120kbit
tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 30kbit ceil 120kbit
tc class add dev ppp0 parent 1:1 classid 1:21 htb rate 30kbit ceil
2002 Feb 28
6
basic htb setup
Hey all. I''m trying to set up QoS using the HTB qdisc in a very basic
setup, but it the example shown in the howto doesn''t seem to be working.
While the packets show up in the correct classes, they appear to be
completely ignoring the rates, meaning nothing gets shaped.
My setup is that I''ve got a a bunch of machines behind my firewall/router:
1.2.3.1
2005 Nov 25
1
Difference between snmp traffic rate, and rate from tc
Hello,
I use rrdtool to graph the traffic in the different classes on an
interface, eth1. Basically, I use the output from
tc -s qdisc ls dev eth1
my tc script (which is only for testing the graphing) looks like this:
/sbin/tc qdisc add dev eth1 root handle 1: htb default 20 r2q 1
/sbin/tc class add dev eth1 parent 1: classid 1:1 htb rate 200kbit burst 15k
/sbin/tc class add dev eth1 parent