Re: [LARTC] HTB on IMQ

2002-12-06 Thread Thomas Jalsovsky

On Thu, 5 Dec 2002, Jose Luis Domingo Lopez wrote:
 On Thursday, 05 December 2002, at 10:04:23 +0100,
 Thomas Jalsovsky wrote:

  could somebody check my IMQ+HTB config? Is it OK?
  Why am I asking for this?
  I got kernel panic and I don't know what is wrong in my config/system.
 
 Kernel panics are not the consequence of bad configuration on the user
 or administrator part (except attempts to overflow some kernel buffer to
 do Very Bad Things (tm)).

 If the kernel crashes, process the resulting panic() through ksymoops to
 decode the functions and symbols, and post it to the appropiate mailing
 list. It will be a bug from some developer, not you :-)
The problem source has been found:
/usr/local/sbin/iptables -t mangle -A PREROUTING -i eth2 -j IMQ --todev 0
/usr/local/sbin/iptables -t mangle -A POSTROUTING -o eth2 -j IMQ --todev 0

this doesn't work and causes kernel panic. Unfortunately I'm not a kernel
hacker but I think this problem is easily reproducable.
My goal is to have one queue to achive a global traffic shaping e.g. to
have a bandwidth for ingress and egress traffic in one. 2 IMQ's don't
solve the problem while it is not possible to connect them into one...

Is the shaper configuration (one IMQ for ingress and eggress traffic from
the same physical interface) WRONG or simple it is a kernel bug?

Thanks in advance,
Thomas

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] HTB on IMQ

2002-12-06 Thread Vladimir Smelhaus
On 6 Dec 2002, 9:34, Thomas Jalsovsky wrote:

 Is the shaper configuration (one IMQ for ingress and eggress traffic
 from the same physical interface) WRONG or simple it is a kernel bug?
 
It is wrong. You must have separate imq devices for ingress and 
egress.

i.e.

modprobe imq numdevs=2

iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
iptables -t mangle -A POSTROUTING -o eth1 -j IMQ --todev 1

Zdravim/Regards

 Vladimir Smelhaus

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] HTB on IMQ

2002-12-05 Thread Jose Luis Domingo Lopez
On Thursday, 05 December 2002, at 10:04:23 +0100,
Thomas Jalsovsky wrote:

   could somebody check my IMQ+HTB config? Is it OK?
 Why am I asking for this?
 I got kernel panic and I don't know what is wrong in my config/system.
 
Kernel panics are not the consequence of bad configuration on the user
or administrator part (except attempts to overflow some kernel buffer to
do Very Bad Things (tm)).

If the kernel crashes, process the resulting panic() through ksymoops to
decode the functions and symbols, and post it to the appropiate mailing
list. It will be a bug from some developer, not you :-)

Hope it helps.

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Woody (Linux 2.4.20-xfs)
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/