Skip to contentSkip to conversation

Trying to do some very simple ingress limiting,

LARTC richard lucassen 2 participants 5 messages Apr 10, 2006

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · On Mon, 10 Apr 2006 14:38:10 +0200 Erik Slagter <[email protected]> wrote:
Quoted 1 line

I didn't know there is a problrm with IMQ + netfilter.

You just told me ;-)

The IMQ handling is done before the netfilter handling...

That's IFB, not IMQ. IFB is an intermediate functional block that appeared in kernel 2.6.16. IFB is a device, IMQ is a iptables target (and a device)

And IMQ is a kernel patch (and iptables has to be patched as well) while IFB is in the mainstream kernel.

Signature · 13 lines
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#1 lore raw

Re: [LARTC] Re: Trying to do some very simple ingress limiting, no

Quoted 7 lines · richard lucassen
Quoted 4 lines · On Mon, 10 Apr 2006 14:38:10 +0200 Erik Slagter <[email protected]> wrote:
Quoted 1 line

I didn't know there is a problrm with IMQ + netfilter.

You just told me ;-)

Quoted 8 lines
Quoted 1 line

The IMQ handling is done before the netfilter handling...

That's IFB, not IMQ. IFB is an intermediate functional block that appeared in kernel 2.6.16. IFB is a device, IMQ is a iptables target (and a device)

And IMQ is a kernel patch (and iptables has to be patched as well) while IFB is in the mainstream kernel.

Sorry for the mix-up.

Anyway, the result is the same.

Cannot use IMQ because patching iproute2 is not feasible, cannot use IFB because it's at the wrong location in the chain.

And the simple approach I wanted in the first place, now works.

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to richard lucassen
Quoted 7 lines · On Mon, 10 Apr 2006 15:51:47 +0200 Erik Slagter <[email protected]> wrote:
Quoted 6 lines

That's IFB, not IMQ. IFB is an intermediate functional block that appeared in kernel 2.6.16. IFB is a device, IMQ is a iptables target (and a device)

And IMQ is a kernel patch (and iptables has to be patched as well) while IFB is in the mainstream kernel.

Quoted 6 lines

Sorry for the mix-up.

Anyway, the result is the same.

Cannot use IMQ because patching iproute2 is not feasible, cannot use IFB because it's at the wrong location in the chain.

You don't need to patch iproute2 for IMQ, just iptables and the kernel. IMQ lives well together with all other stuff AFAIK.

R.

Signature · 13 lines
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#3 lore raw

Re: [LARTC] Re: Trying to do some very simple ingress limiting, no

In reply to richard lucassen
Quoted 5 lines · richard lucassen
Quoted 2 lines

Cannot use IMQ because patching iproute2 is not feasible, cannot use IFB because it's at the wrong location in the chain.

You don't need to patch iproute2 for IMQ, just iptables and the kernel. IMQ lives well together with all other stuff AFAIK.

Hmmm, if you mean the iptables program, then same story :-(

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#4 lore raw
In reply to richard lucassen
Quoted 8 lines · On Mon, 10 Apr 2006 16:29:24 +0200 Erik Slagter <[email protected]> wrote:
Quoted 5 lines · richard lucassen
Quoted 2 lines

Cannot use IMQ because patching iproute2 is not feasible, cannot use IFB because it's at the wrong location in the chain.

You don't need to patch iproute2 for IMQ, just iptables and the kernel. IMQ lives well together with all other stuff AFAIK.

Hmmm, if you mean the iptables program, then same story :-(

You just create two extra .so files, that's all. The patch works well with iptables-1.3.5.

Signature · 13 lines
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc