Skip to contentSkip to conversation

Little problem with IMQ

LARTC Lenthir 3 participants 6 messages Aug 9, 2004 – Aug 11, 2004

lore
Share & tools
lore

Lenthir

author
#0 lore raw

When I try to put all incoming traffic to IMQ on PREROUTING I can't discern traffic to LAN and traffic to server.

When I try to put only INPUT traffic to IMQ... I can't discern traffic from LAN and from internet.

Help me plizz to put all incoming traffic to one IMQ device and all outcoming to other IMQ device and (it's very important) discern traffic to clients and server.

(Sorry for my English... It is not well.)

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Lenthir, please be more specific in your question. We need to know about your environment, kernel, iptables and distro versions. We need to know what you want to do, what you are doing now and what is not working. This way we can try to help you. Your iptables and tc rules will help as well.

This is not about your english, it is about describing your scenario and problem in details.

Cheers.

Andre Correa

Quoted 10 lines · Lenthir

When I try to put all incoming traffic to IMQ on PREROUTING I can't discern traffic to LAN and traffic to server.

When I try to put only INPUT traffic to IMQ... I can't discern traffic from LAN and from internet.

Help me plizz to put all incoming traffic to one IMQ device and all outcoming to other IMQ device and (it's very important) discern traffic to clients and server.

Quoted 7 lines

(Sorry for my English... It is not well.)

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#2 lore raw
In reply to Lenthir

Ok.... I attached my script...

rc.htb is now working for me. But packet addressed to server don't match correct class.

htb1.2rc3 don't work because i can't discern traffic to LAN and traffic to server.

in script
prs it is address of server
lan[0], lan[1] - lists of IP address to each interfaces... (defined in dev_lan)

I tried on two types of compiled kernel - 2.4.26 with only IMQ patch and 2.4.26 with IMQ and NAT patch.
I don't see any differences...

I have iptables 1.2.11 compiled with the kernel.

#3 lore raw
In reply to Lenthir

Originaly this always was imq problem, because prerouting and postrouting hooks do not alow do what you want.
you can only capture all ingress, or all egress which is same as usual tc just unstable.

you can change imq source to hook on other places, like input and forward.

or you can use my version where I already did that.

http://pupa.da.ru/imq/

----- Original Message -----
From: "Lenthir" <[email protected]>
To: "$LARTC" <[email protected]>
Sent: Tuesday, August 10, 2004 11:47 AM
Subject: Re: [LARTC] Little problem with IMQ

Quoted 11 lines

rc.htb is now working for me. But packet addressed to server don't match correct class.

htb1.2rc3 don't work because i can't discern traffic to LAN and traffic to server.

in script
prs it is address of server
lan[0], lan[1] - lists of IP address to each interfaces... (defined in dev_lan)

Quoted 8 lines

I tried on two types of compiled kernel - 2.4.26 with only IMQ patch and 2.4.26 with IMQ and NAT patch.
I don't see any differences...

I have iptables 1.2.11 compiled with the kernel.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#5 lore raw
In reply to Lenthir

OK... I rewrite my script.... all is OK, but server outgoing traffic can't match correct class.

I attached my new script. (in develop now :d)