Skip to contentSkip to conversation

Update Iptables in order to use String-Match

DISCUSSION [email protected] 2 participants 9 messages Apr 2, 2006 – Apr 4, 2006

lore
Share & tools
lore
#0 lore raw

Hi List!

I am running Linux 2.4.32 and an older version of iptables. I'd like to use String-Match. I tried to update with some verions of p-o-m. Nothing helped. I also compiled iptables 1.3.5. successfully.

What went wrong?

#1 lore raw
Quoted 7 lines

Hi List!

I am running Linux 2.4.32 and an older version of iptables. I'd like to use String-Match. I tried to update with some verions of p-o-m. Nothing helped. I also compiled iptables 1.3.5. successfully.

What went wrong?

Dunno.. The crystal ball is a bit cloudy today. Any error messages ?

You have "updated some versions of p-o-m". What do you mean by that ? What have you done exactly ?

Have you :
- untarred the kernel,
- untarred POM,
- untarred iptables,
- patched both the kernel and iptables with POM,
- compiled and installed the kernel and modules,
- compiled and installed iptables ?

Gr,
Rob

#2 lore raw
Quoted 1 line · Rob Sterenborg

Dunno.. The crystal ball is a bit cloudy today. Any error messages ?

oh I 've forgotten:

linux:/usr/local/lib/iptables # iptables -m string -h
iptables: match `string' v1.3.3 (I'm v1.3.5)

Quoted 7 lines

You have "updated some versions of p-o-m". What do you mean by that ? What have you done exactly ?

Have you :
- untarred the kernel,
- untarred POM,
- untarred iptables,

all yes

Quoted 1 line

- patched both the kernel and iptables with POM,

yes, but don't add string-match

Quoted 1 line

- compiled and installed the kernel and modules,

yes, but no string-match modul seen in kernel menuconfig

Quoted 1 line

- compiled and installed iptables ?

yes

#3 lore raw
Quoted 5 lines
Quoted 2 lines

Dunno.. The crystal ball is a bit cloudy today. Any error messages ? oh I 've forgotten:

linux:/usr/local/lib/iptables # iptables -m string -h
iptables: match `string' v1.3.3 (I'm v1.3.5)

So your iptables isn't installed or installed in a different path than the original.

Quoted 11 lines
Quoted 7 lines

You have "updated some versions of p-o-m". What do you mean by that ? What have you done exactly ?

Have you :
- untarred the kernel,
- untarred POM,
- untarred iptables,

all yes

Quoted 1 line

- patched both the kernel and iptables with POM,

yes, but don't add string-match

So that's where things go wrong : if it doesn't show up, you couldn't have patched the kernel for it.

The string match is in the Extra repository. Did you run POM with "./runme extra" ?
http://www.netfilter.org/projects/patch-o-matic/pom-extra.html#pom-extra
-string

Quoted 2 lines
Quoted 1 line

- compiled and installed the kernel and modules,

yes, but no string-match modul seen in kernel menuconfig

See above.

Quoted 2 lines
Quoted 1 line

- compiled and installed iptables ?

yes

I think not completely.
What does "iptables -V" say ? (Mine says : "iptables v1.3.5-2006xxxx")

Gr,
Rob

#4 lore raw
Quoted 2 lines · Rob Sterenborg

So your iptables isn't installed or installed in a different path than the original.

hmm bad...how do I correct this?

Quoted 7 lines

So that's where things go wrong : if it doesn't show up, you couldn't have patched the kernel for it.

The string match is in the Extra repository. Did you run POM with "./runme extra" ?
http://www.netfilter.org/projects/patch-o-matic/pom-extra.html#pom-extra
-string

hmm no, I will do this now...

Quoted 2 lines

I think not completely.
What does "iptables -V" say ? (Mine says : "iptables v1.3.5-2006xxxx")

iptables v1.3.5

#5 lore raw
Quoted 5 lines
Quoted 2 lines

So your iptables isn't installed or installed in a different path than the original.

hmm bad...how do I correct this?

Quoted 1 line

iptables: match `string' v1.3.3 (I'm v1.3.5)

The last part between the brackets, I suppose iptables wrote it ? (I think I got confused there.)
If this is true, you have the string match from 1.3.3 installed (if you already had it, why build a new kernel/iptables ?) and are using iptables 1.3.5. (That means you have iptables-1.3.5 installed but didn't install string match 1.3.5 which would be true, reading below.)

Quoted 4 lines
Quoted 2 lines

The string match is in the Extra repository. Did you run POM with "./runme extra" ?

hmm no, I will do this now...

I think that will solve your problem.
(Remember to also recompile iptables..)

Gr,
Rob

#6 lore raw
Quoted 6 lines · Rob Sterenborg

The last part between the brackets, I suppose iptables wrote it ? (I think I got confused there.)
If this is true, you have the string match from 1.3.3 installed (if you already had it, why build a new kernel/iptables ?) and are using iptables 1.3.5. (That means you have iptables-1.3.5 installed but didn't install string match 1.3.5 which would be true, reading below.)

When I used String-Match with Hex, I got a Sigfault.

Quoted 2 lines

I think that will solve your problem.
(Remember to also recompile iptables..)

I will do...

#7 lore raw
In reply to Rob Sterenborg
Quoted 7 lines · Rob Sterenborg

The last part between the brackets, I suppose iptables wrote it ? (I think I got confused there.)
If this is true, you have the string match from 1.3.3 installed (if you already had it, why build a new kernel/iptables ?) and are using iptables 1.3.5. (That means you have iptables-1.3.5 installed but didn't install string match 1.3.5 which would be true, reading below.)

Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

The string match is in the Extra repository. Did you run POM with "./runme extra" ?

hmm no, I will do this now...

I think that will solve your problem.
(Remember to also recompile iptables..)

The last version of POM does not content String-match! I found it in a version of 2004, is that right?

#8 lore raw
Quoted 9 lines
Quoted 9 lines

The last part between the brackets, I suppose iptables wrote it ? (I think I got confused there.) If this is true, you have the string match from 1.3.3 installed (if you already had it, why build a new kernel/iptables ?) and are using iptables 1.3.5. (That means you have iptables-1.3.5 installed but didn't install string match 1.3.5 which would be true, reading below.)

Quoted 2 lines
Quoted 2 lines

The string match is in the Extra repository. Did you run POM with "./runme extra" ?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

hmm no, I will do this now...

I think that will solve your problem.
(Remember to also recompile iptables..)

The last version of POM does not content String-match! I found it in a version of 2004, is that right?

Hm. I never used it so I never noticed ; it indeed appears to be dropped or something.
If you really need it (we don't know what you actually want to do, so maybe there's another/better way), maybe you can use an old POM for just the string match, and a recent POM for the rest.. But I'm not sure if that's such a good idea or even if that will break something : it's up to you.

Gr,
Rob