search for: imq0

Displaying 20 results from an estimated 97 matches for "imq0".

Did you mean: imm0
2004 Apr 04
2
IMQ & NAT
...;ve problems to attach the traffic in the qdisc''s. This is my conf: ----------------------------------------------------------------------- INET | |eth0 300Kbps ROUTER (NAT) |eth1 | LAN ----------------------------------------------------------------------- MAX=300 tc qdisc add dev imq0 root handle 1: htb default 13 tc class add dev imq0 parent 1: classid 1:1 htb rate ${MAX}kbit ceil ${MAX}kbit...
2007 Apr 26
1
HTB+SFQ
...not work, becouse i put more code to clasify the traffic by protocol, http and ftp in this case. Somebody can tell me the errors? Thx, in advance.- NOTICE: IMQ device is to asociate with ETH1 my external iface. SCRIPT que funciona: ############################################ #!/bin/sh ifconfig imq0 up tc qdisc add dev imq0 handle 1: root htb default 1 tc class add dev imq0 parent 1: classid 1:1 htb rate 500kbit ceil 2000kbit tc qdisc add dev imq0 parent 1:1 handle 2 sfq iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0 tc filter add dev imq0 parent 1: prio 0 protocol ip handle 2 fw f...
2007 Feb 27
2
Creating a contended section of bandwidth with HTB and IMQ
Hi All, I''m trying to create a contended section of bandwidth using IMQ. I have the imq0 device up and running, with traffic passing through it. Firstly, I need to throttle the entire device imq0 to 2mbit/s. I would then like to add throttle rules for individual IP addresses, allowing them to pass up to 512kbit/s each, as long as imq0 has not reached its 2mbit/s. The configuration...
2004 May 20
1
tcng configuration question??
...#39;'m open to suggestions. I do have a tcng configuration question though. I''m trying to replicate my earlier simple configuration with TC. I''m sure what I have is far from optimal - but I wanted to stick as close to my original tc architecture as I could so: dev "imq0" { egress { class (<$four_vip>) if ip_src == 192.168.4.2/32; class (<$six_vip>) i...
2002 Jul 12
1
IMQ crash dump
Hi I try setup imq pseudo device for shaping I''m work such script #!/bin/sh TC=/sbin/tc /sbin/modprobe imq numdevs=1 /sbin/ip link set imq0 up $TC qdisc add dev imq0 handle 1: root htb default 1 $TC class add dev imq0 parent 1: classid 1:1 htb rate 10mbit # client1 tunnel tunnel $TC class add dev imq0 parent 1: classid 1:2 htb rate 256kbit $TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src 10.255.255.40/30 flowid 1:...
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 ) sub4 = 1:12 (src and dst ports 80/tcp or 53/any or 443/tcp) sub5 = 1:99 (packets less than 64 bytes) main class =...
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 /usr/local/sbin/iptables -t mangle -D PREROUTING -i eth2 -j IMQ --todev 0 2> /dev/null /usr/local/sbin/iptables -t mangle -D POSTROUTING -o eth2 -j IMQ --tod...
2004 Jun 28
1
IMQ htb question
Hello, I''ve just recently started to use IMQ and I got puzzled after seeing the imq usage example on the linuximq.net site: It was something like this: tc qdisc add dev imq0 handle 1: root htb default 1 tc class add dev imq0 parent 1: classid 1:1 htb rate 1mbit tc qdisc add dev imq0 parent 1:1 handle 10: htb default 5 tc class add dev imq0 parent 10: classid 10:1 htb rate 256kbit burst 30k prio 1 and I tried the following (like in the classic htb examples from lartc)...
2002 Nov 12
1
pb with imq
hi stef oone more pb while shaping incoming traffic with imq .this one tc qdisc add dev imq0 root handle 1: htb default 20 tc class add dev imq0 parent 1: classid 1:1 htb rate 2mbit burst 15k tc class add dev imq0 parent 1:1 classid 1:10 htb rate 1mbit tc class add dev imq0 parent 1:1 classid 1:20 htb rate 1mbit tc qdisc add dev imq0 parent 1:10 handle 10: pfifo tc qdisc add dev imq0 pa...
2005 Nov 25
7
tcpdump not working with imq0 devices
On my debian woody (kernel 2.4.31) the tcpdump doesn''t work with imq0 devices. If I try to tcpdump imq devices there is no packet seen: [...] rt1:~# tcpdump -n -i imq0 Warning: arptype 65535 not supported by libpcap - falling back to cooked socket tcpdump: WARNING: imq0: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol...
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 interrupted if bandwidth is limited. I tried to trace it down and did= some simple test: modprobe imq numdevs=3D1 tc qdisc add dev imq0 root handle 1: htb default 10 tc cla...
2003 Apr 15
3
IMQ+HTB problem
Hi all and tc Gururs i have patched the IMQ and htb to kernel, but when i do egress filtering, iam not able to see any traffic and excusted the following the commands modprobe imq numdevs=1 tc qdisc add dev imq0 handle 1: root htb default 1 tc class add dev imq0 parent 1: classid 1:1 htb rate 100kbit tc qdisc add dev imq0 parent 1:1 handle 10: htb default 1 tc class add dev imq0 parent 10: classid 10:10 htb rate 100kbit tc qdisc add dev imq0 parent 10:10 handle 20: sfq iptables -t mangle -A POSTROUT...
2006 Feb 14
1
Guarantee ICMP respond time ?
...example . if i start shaper ping i better that without shaper but it''s not guarantted i mean response time is not like constant. Maybe i''m missing something. Is it possible with HTB ot with something else like CBQ ? here is my example setup echo "Loading Traffic Shaper IMQ0 Upload" tc qdisc del dev imq0 root tc qdisc add dev imq0 root handle 2: htb default 333 r2q 1 tc class add dev imq0 parent 2: classid 2:2 htb rate 192kbit #ICMP tc class add dev imq0 parent 2:2 classid 2:30 htb rate 32kbit prio 0 tc filter add dev imq0 parent 2:0 protocol ip handle 5 fw...
2004 Nov 19
2
HTB&IMQ
...d 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 ifconfig imq1 down iptables -t mangle -F #UPLOAD ifconfig imq0 up tc qdisc del dev imq0 root tc qdisc add dev imq0 root handle 1 htb default 99 tc class add dev imq0 parent 1: classid 1:10 htb rate 1536kbit # 8k max 15k tc class add...
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 add dev imq0 parent 2:40 handle 40 sfq $tc filter add dev imq0 parent 2:4 protocol...
2005 Jan 31
3
why there is any traffic in default class?
I have: tc qdisc add dev imq0 root handle 1: htb default 30 tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit tc class add dev imq0 parent 1:1 classid 1:30 htb rate 64kbit ceil 512kbit then: iptables -t mangle -A PREROUTING -i ppp0 -s 192.168.2.2 -j IMQ --todev 0 tc class add dev imq0 parent 1:1 class...
2004 Jan 13
2
Bridge + leased line + tc
.... Normally you would shape the outgoing traffic on eth0, but this doesn''t work. We even tried to limit eth0 to 20kbit, but the synch-traffic completely fills the leased line and no other traffic gets through. We found a temporary fix by using IMQ with iptables: /sbin/tc qdisc del root dev imq0 /sbin/tc qdisc add dev imq0 root handle 1: htb default 20 /sbin/tc class add dev imq0 parent 1: classid 1:1 htb rate 2Mbit burst 6k /sbin/tc class add dev imq0 parent 1:1 classid 1:10 htb rate 64kbit ceil 787kbit /sbin/tc class add dev imq0 parent 1:1 classid 1:20 htb rate 2Mbit /sbin/tc qdisc add...
2004 Oct 28
12
HTB: Problem with excess bandwidth distribution
...et-mark 1 iptables -t mangle -A FORWARD -d 192.168.34.140 -j MARK --set-mark 2 iptables -t mangle -A FORWARD -d 192.168.1.2 -j MARK --set-mark 3 Because it might be of interest: 192.168.34.0/24 is on network A with 10 MBit, 192.168.1.0/24 is on network B with 100 MBit. I then attach an IMQ device imq0 to the FORWARD table: # delegate all incoming on ppp+ to imq0 iptables -t mangle -A FORWARD -i ppp+ -j IMQ --todev 0 After all this I create the actual tc setup: # --- snip --- # clear root qdisc tc qdisc del dev imq0 root # add root qdisc (htb) tc qdisc add dev imq0 root handle 1: htb defaul...
2006 Sep 19
5
how to setup massive traffic shaping? (2 class B nets)
Hello I have 2 class-B networks (172.22.0.0/16 and 172.23.0.0/16, over 130k of ip''s) and need to setup traffic tbf shapers with 64kb/s for each ip from 172.22.0.0/16 and 128kb/s for each ip from 172.23.0.0/16 just read lartc and don''t understand how to use u32 for decreasing number of rules and hashing
2005 Oct 01
2
imq + htb
...n:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin iptables -t mangle -F 2>/dev/null iptables -t mangle -X 2>/dev/null iptables -t mangle -N markov iptables -t mangle -I PREROUTING -j markov iptables -t mangle -N markov2 iptables -t mangle -I POSTROUTING -j markov2 tc qdisc del dev imq0 root >/dev/null 2>&1 tc qdisc del dev imq1 root >/dev/null 2>&1 #bring up the imq0 ip link set dev imq0 up #marking of incoming from eth1,eth2,eth3 iptables -t mangle -A markov -i eth1 -j MARK --set-mark 1 iptables -t mangle -A markov -i eth2 -j MARK --set-mark 2 iptables -t...