* Re: [LARTC] IMQ problem -- badly need help
@ 2003-04-17 9:47 Stef Coene
2003-04-17 9:55 ` hare ram
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Stef Coene @ 2003-04-17 9:47 UTC (permalink / raw)
To: lartc
On Thursday 17 April 2003 11:43, hare ram wrote:
> Hi all Guru's
>
> I have been try to work on this IMQ more than 4 weeks but i could not get
> any results
> really and badly need to help to achive my setup
>
> iam trying to achieve is up+down=total bandwidth, as per the user groups
> suggestion
> i would like to use IMQ to make my setup to achive this
>
> my setup is , RH 9.0 with patch bridge-nf
> and patched IMQ with iptables 1.2.8 and POM also done
> HTB also patched with latest ip route
>
> my bridge is running fine, iam able to use transparent bridge, working that
> also
>
> laptop---switch--eth1(bridge)eht0--switch--Router--internet
>
>
> next i have executed small example
>
> iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
> ----
> " when i executed above line i got this message
> [root@bridge root]# iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev
> 0
> iptables: target `IMQ' v1.2.6a (I'm v1.2.8).
> ----
> iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 20 -m state --state
> ESTABLISHED -j MARK --set-mark 1
> iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 80 -m state --state
> ESTABLISHED -j MARK --set-mark 2
> iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 25 -m state --state
> ESTABLISHED -j MARK --set-mark 3
This is your problem. I think the iptables rule is not added. But don't ask
me why. Maybe you use the wrong iptables version? I don't know.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LARTC] IMQ problem -- badly need help
2003-04-17 9:47 [LARTC] IMQ problem -- badly need help Stef Coene
@ 2003-04-17 9:55 ` hare ram
2003-04-17 10:12 ` hare ram
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: hare ram @ 2003-04-17 9:55 UTC (permalink / raw)
To: lartc
Hi all Guru's
I have been try to work on this IMQ more than 4 weeks but i could not get
any results
really and badly need to help to achive my setup
iam trying to achieve is up+down=total bandwidth, as per the user groups
suggestion
i would like to use IMQ to make my setup to achive this
my setup is , RH 9.0 with patch bridge-nf
and patched IMQ with iptables 1.2.8 and POM also done
HTB also patched with latest ip route
my bridge is running fine, iam able to use transparent bridge, working that
also
laptop---switch--eth1(bridge)eht0--switch--Router--internet
next i have executed small example
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 64kbit
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 12kbit burst 16kbit
prio 3
tc class add dev imq0 parent 10: classid 10:2 htb rate 28kbit burst 16kbit
prio 2
tc class add dev imq0 parent 10: classid 10:3 htb rate 16kbit burst 16kbit
prio 1
tc class add dev imq0 parent 10: classid 10:5 htb rate 8kbit prio 4
tc qdisc add dev imq0 parent 10:1 handle 21:0 sfq
tc qdisc add dev imq0 parent 10:2 handle 22:0 sfq
tc qdisc add dev imq0 parent 10:3 handle 23:0 sfq
tc qdisc add dev imq0 parent 10:5 handle 24:0 sfq
tc filter add dev imq0 protocol ip pref 1 parent 10: handle 1 fw classid
10:1
tc filter add dev imq0 protocol ip pref 2 parent 10: handle 2 fw classid
10:2
tc filter add dev imq0 protocol ip pref 3 parent 10: handle 3 fw classid
10:3
iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
----
" when i executed above line i got this message
[root@bridge root]# iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev
0
iptables: target `IMQ' v1.2.6a (I'm v1.2.8).
----
iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 20 -m state --state
ESTABLISHED -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 80 -m state --state
ESTABLISHED -j MARK --set-mark 2
iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 25 -m state --state
ESTABLISHED -j MARK --set-mark 3
ip link set imq0 up
iam able to see the packet when i try to browse using my laptop to yahoo.com
see below
[root@bridge root]# iptables -xvnL -t mangle
Chain PREROUTING (policy ACCEPT 10929 packets, 1105430 bytes)
pkts bytes target prot opt in out source
destination
0 0 MARK tcp -- eth1 * 0.0.0.0/0
0.0.0.0/0 tcp dpt:20 state ESTABLISHED MARK set 0x1
42 5053 MARK tcp -- eth1 * 0.0.0.0/0
0.0.0.0/0 tcp dpt:80 state ESTABLISHED MARK set 0x2
0 0 MARK tcp -- eth1 * 0.0.0.0/0
0.0.0.0/0 tcp dpt:25 state ESTABLISHED MARK set 0x3
but iam not able to see any traffic on imq0, see the out put below
br0 Link encap:Ethernet HWaddr 00:00:00:00:CB:3B
inet addr:202.x.x.7 Bcast:202.x.x.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16647 errors:0 dropped:0 overruns:0 frame:0
TX packets:2145 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1040336 (1015.9 Kb) TX bytes:402909 (393.4 Kb)
eth0 Link encap:Ethernet HWaddr 00:00:x:x:x:3B
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18992 errors:0 dropped:0 overruns:0 frame:0
TX packets:4908 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:100
RX bytes:1759678 (1.6 Mb) TX bytes:605918 (591.7 Kb)
Interrupt:15 Base address:0x3000
eth1 Link encap:Ethernet HWaddr 00:80:48:x:x:xx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2773 errors:0 dropped:0 overruns:0 frame:0
TX packets:16615 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:202939 (198.1 Kb) TX bytes:1590493 (1.5 Mb)
Interrupt:11 Base address:0xc800
imq0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
when i take the TC out out
[root@bridge root]# tc -s class ls dev imq0
class htb 10:1 root leaf 21: prio 3 rate 12Kbit ceil 12Kbit burst 2Kb cburst
1614b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 1092266 ctokens: 861333
class htb 10:2 root leaf 22: prio 2 rate 28Kbit ceil 28Kbit burst 2Kb cburst
1634b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 468113 ctokens: 373714
class htb 10:3 root leaf 23: prio 1 rate 16Kbit ceil 16Kbit burst 2Kb cburst
1619b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 819200 ctokens: 647999
class htb 10:5 root leaf 24: prio 4 rate 8Kbit ceil 8Kbit burst 1609b cburst
1609b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 1287999 ctokens: 1287999
class htb 1:1 root leaf 10: prio 0 rate 64Kbit ceil 64Kbit burst 1680b
cburst 1680b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 168099 ctokens: 168099
all are 0 bytes
iam not sure what is wrong, any expert coment will be appriciate
hare
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] IMQ problem -- badly need help
2003-04-17 9:47 [LARTC] IMQ problem -- badly need help Stef Coene
2003-04-17 9:55 ` hare ram
@ 2003-04-17 10:12 ` hare ram
2003-04-17 10:13 ` Stef Coene
2003-04-17 13:16 ` Patrick McHardy
3 siblings, 0 replies; 5+ messages in thread
From: hare ram @ 2003-04-17 10:12 UTC (permalink / raw)
To: lartc
Do you thing its iptables problem
even i have cheked with iptables 1.2.7a
still iam not succeeded
when i make rules with out IMQ, iam able to see all the traffic
even postrouting and prerouting
really confusing this,
hare
----- Original Message -----
From: "Stef Coene" <stef.coene@docum.org>
To: "hare ram" <hareram@sol.net.in>; <lartc@mailman.ds9a.nl>
Sent: Thursday, April 17, 2003 3:17 PM
Subject: Re: [LARTC] IMQ problem -- badly need help
> On Thursday 17 April 2003 11:43, hare ram wrote:
> > Hi all Guru's
> >
> > I have been try to work on this IMQ more than 4 weeks but i could not
get
> > any results
> > really and badly need to help to achive my setup
> >
> > iam trying to achieve is up+down=total bandwidth, as per the user groups
> > suggestion
> > i would like to use IMQ to make my setup to achive this
> >
> > my setup is , RH 9.0 with patch bridge-nf
> > and patched IMQ with iptables 1.2.8 and POM also done
> > HTB also patched with latest ip route
> >
> > my bridge is running fine, iam able to use transparent bridge, working
that
> > also
> >
> > laptop---switch--eth1(bridge)eht0--switch--Router--internet
> >
> >
> > next i have executed small example
> >
> > iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
> > ----
> > " when i executed above line i got this message
> > [root@bridge root]# iptables -t mangle -A PREROUTING -i eth1 -j
IMQ --todev
> > 0
> > iptables: target `IMQ' v1.2.6a (I'm v1.2.8).
> > ----
> > iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 20 -m
state --state
> > ESTABLISHED -j MARK --set-mark 1
> > iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 80 -m
state --state
> > ESTABLISHED -j MARK --set-mark 2
> > iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 25 -m
state --state
> > ESTABLISHED -j MARK --set-mark 3
>
> This is your problem. I think the iptables rule is not added. But don't
ask
> me why. Maybe you use the wrong iptables version? I don't know.
>
> Stef
>
> --
>
> stef.coene@docum.org
> "Using Linux as bandwidth manager"
> http://www.docum.org/
> #lartc @ irc.oftc.net
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] IMQ problem -- badly need help
2003-04-17 9:47 [LARTC] IMQ problem -- badly need help Stef Coene
2003-04-17 9:55 ` hare ram
2003-04-17 10:12 ` hare ram
@ 2003-04-17 10:13 ` Stef Coene
2003-04-17 13:16 ` Patrick McHardy
3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2003-04-17 10:13 UTC (permalink / raw)
To: lartc
On Thursday 17 April 2003 12:00, hare ram wrote:
> Do you thing its iptables problem
> even i have cheked with iptables 1.2.7a
> still iam not succeeded
Mhh.
> when i make rules with out IMQ, iam able to see all the traffic
> even postrouting and prerouting
>
> really confusing this,
I know there are members of this list using imq. Maybe they can help?
Anyone? Hallo?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] IMQ problem -- badly need help
2003-04-17 9:47 [LARTC] IMQ problem -- badly need help Stef Coene
` (2 preceding siblings ...)
2003-04-17 10:13 ` Stef Coene
@ 2003-04-17 13:16 ` Patrick McHardy
3 siblings, 0 replies; 5+ messages in thread
From: Patrick McHardy @ 2003-04-17 13:16 UTC (permalink / raw)
To: lartc
It sounds like the imq target shared libraries were not
compiled. You need to replace NETFILTER_VERSION by
IPTABLES_VERSION in libipt_IMQ.c and libip6t_IMQ.c
Patrick
hare ram wrote:
>>>iptables: target `IMQ' v1.2.6a (I'm v1.2.8).
>>>
>>>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-04-17 13:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-17 9:47 [LARTC] IMQ problem -- badly need help Stef Coene
2003-04-17 9:55 ` hare ram
2003-04-17 10:12 ` hare ram
2003-04-17 10:13 ` Stef Coene
2003-04-17 13:16 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.