Displaying 20 results from an estimated 10000 matches similar to: "TC on multiple nics"
2006 Apr 11
0
Htb queueing problem
A note to confirm that "-m physdev --physdev-is-bridged" in the iptables
command does enable iptables to work in a bridged environment. I was
fighting the same problem and this indeed solved it.
Below is my test script running on a two NIC Debian 3.1 266MHz bridge.
Before adding the physdev flag, only the "tc filter" commands worked but
now the iptables commands also
2006 Dec 13
0
classid, prio and position
Having a problem with classid and prio and position. Wondering if
someone could help? Below I have pasted a part of my current rules, now
it consists of one chain and two pipes. If they both use 60Kbit which
one would get priority? Would it be the one with the better prio or the
one with the lower classid or would it be the one which is first on the
list?
/sbin/tc class add dev eth1 parent
2006 Dec 06
0
Configuring a QoS Box + Cliente Bandwidth Control
Hello all,
I am trying to configure a linux box to make some QoS into my
netowork and, at the same box, control my clients bandwidth. I have this
classes created:
----------------------------------------------------------------
UP="eth0" # wan infocontabil
DL01="eth2" # lan clientes
$TC qdisc del dev $DL01 root 2> /dev/null >
2005 Oct 01
2
imq + htb
Hi, i am running imq + htb on my router , the situation is like this
eth0 = uplink to my provider
eth1 = 1st customer
eth2 = 2nd customer
eth3 = 3th customer
eth0 has limit 512 and i want to share this between eth1 eth2 and eth3 ,
but not working , this is the script i used,
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#!/bin/sh
2006 Dec 14
1
hfsc rule command problem
My hfsc rule ..
tc qdisc add dev eth2 handle 1: root hfsc
iptables -t mangle -N ms-all
iptables -t mangle -N ms-all-chains
iptables -t mangle -N ms-prerouting
iptables -t mangle -A PREROUTING -j ms-prerouting
iptables -t mangle -A ms-prerouting -j CONNMARK --restore-mark
iptables -t mangle -A ms-prerouting -p udp --dport 4444 -j MARK --set-mark 1
iptables -t mangle -A ms-prerouting -p udp -m
2005 Dec 22
2
strange tc filter behavior
Hi All
I am fighting this for 3 days and could not find any reason it is not working
the way I want to (or I the way think it should).
Internet output interface = eth2 (htb qdisc)
Internet input interface = imq0 (eth2 attached - htb qdisc)
main class = imq0 1:1
sub1 = 1:ffff (default)
sub2 = 1:10 (src ports 1433/tcp or 1434/tcp or 81/tcp or 82/tcp)
sub3 = 1:11 (src and dst port 25/tcp )
2006 Feb 02
0
Linux Gateway Qos_2 interfaces (1 lan and 1 internet) problem
Hello...I have a Slackware based machine doing routing & QoS for my internal LAN users...
It has two interfaces: eth1(100mbps) that connects to the aDSL modem(USR 9105) and eth0(100mbps) that connects to my local LAN...
I''am using shorewall as a firewall...i think it''s configured well as it''s working as i want and i pass all the online firewall tests... :D
All lan
2005 Jun 22
1
Problem with HTB and IPTABLES
Dear All,
Im working with Fedora Core 3, kernel 2.9.1, MPLS-for-Linux-4.193, and
having some problems when create a HTB queue. ALL packets goes to the
default queue, they dont care about any mark or ip field I use to enqueue
them. : -/
Thats the deal, all packets that incoming the interface eth2 are classified
and have theirs TOS field changed following some qos policy at the
PREROUTING
2004 May 09
0
problem with 2 Mbit egress rate
i''m trying to limit my egress bandwidth over 2 interfaces (eth1 and eth2) to
2 Mbit
my script is something like this:
tc=/sbin/ip
ipt=/sbin/iptables
$tc class add dev imq0 parent 2: classid 2:4 htb rate 1845Kbit quantum 3000
$tc filter add dev imq0 parent 2: protocol ip handle 4 fw classid 2:4
$tc class add dev imq0 parent 2:4 classid 2:40 htb rate 0.5Mbit quantum 3000
prio 5
$tc qdisc
2003 Mar 25
1
tc filter isn''t work !
-> Hi!
->
-> I''ve a Linux Box that I want to apply a filter
-> in order to limit FTP salient traffic from my
-> linux box to internet.
->
-> I''ve a:
-> Red Hat 7.2
-> Kernel 2.4.20 (with HTB built in!)
-> iptables 1.2.7a
->
-> Also, I get "tc" binnary package from HTB home page.
->
-> I have a script in
2002 Dec 09
3
HTB problems
Hello,
I have HTB on IMQ device. My rate does not work as I configured. I
configured 1920kbit/s and I can download only about 290kbit/s (while it
should be the whole bandwidth).
My script:
/sbin/modprobe imq numdevs=1
/usr/local/sbin/tc qdisc del dev imq0 root 2> /dev/null > /dev/null
/usr/local/sbin/tc qdisc del dev imq0 ingress 2> /dev/null > /dev/null
/sbin/ifconfig imq0 down
2006 May 09
3
tc del class not working
When I start my script:
* - Creating classes on br1 for upload control ...
* - tc class add dev br1 parent 2:0 classid 2:46 hfsc ls m1
576.0Kbit d 2000ms m2 192.0Kbit ul m2 384Kbit ...
[ ok ]
* - tc class add dev br1 parent 2:46 classid 2:47 hfsc sc umax
1500b dmax 30ms rate 80Kbit . [ ok ]
* - tc class add dev br1 parent 2:46 classid 2:48 hfsc ls m2
152.0Kbit ul m2 152.0Kbit
2006 Jan 24
0
Problems in Bandwidth limiting-Help needed!!!
Dear All
I am a newbie to traffic control and i am trying to setup bandwidth restriction
in my local network as well as internet access to users. I got around 60 pcs in my lab and i am planning to divide bandwidth based on classes. I am using iptables to mark packets and then route the traffic to the specified class.
Following is the network setup
Two network cards in the server eth0
2006 Feb 14
1
Guarantee ICMP respond time ?
Hello to all people there .
Can i guarantee ICMP respond time no metter how loaded is internet line .
i have typical NATed enviroiment like
External IP |linux router| LAN - 192.168.0.0/24
i have example setup with IMQ but is it possible to be done also if i
attache htb to eth0 and eth1 for example .
if i start shaper ping i better that without shaper but it''s not
guarantted i mean
2006 Aug 15
5
howto reduce the ping?
Hi,
with the attached config my gaming ping is still +20ms, even if the line isn''t
saturated..can anybody give me a hint how to get a better response time?
my line: 1024/128kbit
outbound:
one htb qdisc for gaming (7kbps) prio 0 ceil 14kbps<- should get more traffic
when needed.
Htb again for irc and default.
inbound:
css, irc, p2p, default <- same shema as before, give css
2004 May 09
3
prerouting does not effect filtering
I try to shape traffic using HTB and mark packets within iptables using
PREROUTING. But the filterrules seems to ignore the marks set with
PREROUTING
Only POSTROUTING marks are accepted.
First my configuration
I have a router connected to the internet via ADSL over interface ppp0.
eth0 is a tunnel to ppp0 and eth1 serves the LAN.
LAN is 192.168.57.0/24 on 10Mbit
ppp0 is 80.126.16.44 on
2006 Mar 28
1
Please help - totally confused (NAT + FWMARK + IMQ + HTB)
Hello,
I''m trying to get my shaper to work, but have only a partial success.
Can someone help me with that. My setup unfortunately is not so trivial,
but I think some people could have similar one...
1. There is a router connected to the internet line via interface eth0
2. There are users connected to the router via two interfaces : eth1 and
wlan0
3. All users are assigned private IP
2004 Nov 19
2
HTB&IMQ
i''m trying to limit upload and download but something is wrong(it is about NAT)
i will post here my "script" maybe someone could tell me what is wrong
my kernel(2.6.9) is patch with imq(linuximq.net) and my iptables(1.2.11) also
#flush
tc qdisc del dev eth0 root
tc qdisc del dev eth1 root
tc qdisc del dev imq0 root
tc qdisc del dev imq1 root
ifconfig imq0 down
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
2006 Sep 21
0
layer7 http
hello,
I try to use layer7 filter to classify packets. I have a proble with http match. This protocol seems to work well with l7-filter (http://l7-filter.sourceforge.net/protocols) but for me nothing is filtering in http class. Someone can help me ?
Here is my script :
#!/bin/bash
IPT_BIN=/sbin/iptables
TC_BIN=/sbin/tc
INTER_OUT=ppp0
LINK_RATE_UP=1000Kbit
RATE_ACK=200Kbit
RATE_DEFAULT=100Kbit