* [LARTC] IMQ question
@ 2002-05-05 17:02 Ciprian Niculescu
2002-05-05 17:55 ` Martin Devera
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Ciprian Niculescu @ 2002-05-05 17:02 UTC (permalink / raw)
To: lartc
whitch is the logic in this peace of code
iptables -t mangle -A PREROUTING -j IMQ
iptables -t mangle -A PREROUTING -s 1.2.3.4 -j MARK --set-mark 1
and in the imq0 i have a class that handle the pachets marked with 1
this works, the question is why?
beacouse i understand that:
the pachet first enter the IMQ table, and in the queue, after that he
exit and continue with the next rule in the PREROUTING, witch is the
mark.
i must got it wrong
C
_______________________________________________
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 question
2002-05-05 17:02 [LARTC] IMQ question Ciprian Niculescu
@ 2002-05-05 17:55 ` Martin Devera
2004-08-23 12:46 ` [LARTC] imq question Alin Nonosel
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Martin Devera @ 2002-05-05 17:55 UTC (permalink / raw)
To: lartc
The first line only mark packet. After it leaves iptables it
will enter IMQ because of the mark.
devik
On Sun, 5 May 2002, Ciprian Niculescu wrote:
> whitch is the logic in this peace of code
>
> iptables -t mangle -A PREROUTING -j IMQ
> iptables -t mangle -A PREROUTING -s 1.2.3.4 -j MARK --set-mark 1
>
> and in the imq0 i have a class that handle the pachets marked with 1
>
> this works, the question is why?
>
> beacouse i understand that:
> the pachet first enter the IMQ table, and in the queue, after that he
> exit and continue with the next rule in the PREROUTING, witch is the
> mark.
_______________________________________________
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 question
2002-05-05 17:02 [LARTC] IMQ question Ciprian Niculescu
2002-05-05 17:55 ` Martin Devera
@ 2004-08-23 12:46 ` Alin Nonosel
2004-08-23 13:45 ` Roy
2004-08-24 15:16 ` Alin Nonosel
3 siblings, 0 replies; 5+ messages in thread
From: Alin Nonosel @ 2004-08-23 12:46 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
Hi
I've a stupid question. How can I shape upload using IMQ?
Instead of putting a rule in iptables in PREROUTING should i use POSTROUTING?
And another question is, can I make routing rule based on ip addresses assigned by iptables to an imq device?
The idea is, let's say i have some rules in iptables like: -t mangle -A PREROUTING -s 192.168.0.0/16 -j IMQ --todev 0
Can i route this class thru another ip, something like fwmark is doing? with iptables marking the packets and ip rule fwmark?
Best regards,
Alin
[-- Attachment #2: Type: text/html, Size: 1218 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] imq question
2002-05-05 17:02 [LARTC] IMQ question Ciprian Niculescu
2002-05-05 17:55 ` Martin Devera
2004-08-23 12:46 ` [LARTC] imq question Alin Nonosel
@ 2004-08-23 13:45 ` Roy
2004-08-24 15:16 ` Alin Nonosel
3 siblings, 0 replies; 5+ messages in thread
From: Roy @ 2004-08-23 13:45 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 920 bytes --]
You cant shape router upload or imq will crash.
also that imq will not be able to shape traffic per each loacal ip with filters, but you can easily mark packets with iptables in forward of prerouting chain.
----- Original Message -----
From: Alin Nonosel
To: lartc@mailman.ds9a.nl
Sent: Tuesday, August 24, 2004 1:32 AM
Subject: [LARTC] imq question
Hi
I've a stupid question. How can I shape upload using IMQ?
Instead of putting a rule in iptables in PREROUTING should i use POSTROUTING?
And another question is, can I make routing rule based on ip addresses assigned by iptables to an imq device?
The idea is, let's say i have some rules in iptables like: -t mangle -A PREROUTING -s 192.168.0.0/16 -j IMQ --todev 0
Can i route this class thru another ip, something like fwmark is doing? with iptables marking the packets and ip rule fwmark?
Best regards,
Alin
[-- Attachment #2: Type: text/html, Size: 2475 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] imq question
2002-05-05 17:02 [LARTC] IMQ question Ciprian Niculescu
` (2 preceding siblings ...)
2004-08-23 13:45 ` Roy
@ 2004-08-24 15:16 ` Alin Nonosel
3 siblings, 0 replies; 5+ messages in thread
From: Alin Nonosel @ 2004-08-24 15:16 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]
Hmm.. After a few hour of reading and testing finally it's working. IMQ upload limiting and tc with ip filter. What do you mean by that? It is working.. And so far seems stable..
----- Original Message -----
From: Roy
To: Alin Nonosel ; lartc@mailman.ds9a.nl
Sent: Monday, August 23, 2004 6:45 AM
Subject: Re: [LARTC] imq question
You cant shape router upload or imq will crash.
also that imq will not be able to shape traffic per each loacal ip with filters, but you can easily mark packets with iptables in forward of prerouting chain.
----- Original Message -----
From: Alin Nonosel
To: lartc@mailman.ds9a.nl
Sent: Tuesday, August 24, 2004 1:32 AM
Subject: [LARTC] imq question
Hi
I've a stupid question. How can I shape upload using IMQ?
Instead of putting a rule in iptables in PREROUTING should i use POSTROUTING?
And another question is, can I make routing rule based on ip addresses assigned by iptables to an imq device?
The idea is, let's say i have some rules in iptables like: -t mangle -A PREROUTING -s 192.168.0.0/16 -j IMQ --todev 0
Can i route this class thru another ip, something like fwmark is doing? with iptables marking the packets and ip rule fwmark?
Best regards,
Alin
[-- Attachment #2: Type: text/html, Size: 3578 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-24 15:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-05 17:02 [LARTC] IMQ question Ciprian Niculescu
2002-05-05 17:55 ` Martin Devera
2004-08-23 12:46 ` [LARTC] imq question Alin Nonosel
2004-08-23 13:45 ` Roy
2004-08-24 15:16 ` Alin Nonosel
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.