Skip to contentSkip to conversation

Problems loading a Patch-O-Matic match

DISCUSSION Juan Torres 2 participants 2 messages Mar 18, 2003 – Mar 19, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hi, I'm trying to load a new match which comes in the Patch-O-Matic package. I have run Patch-O-Matic and I have selected the match I'm interested in (mport), then I have compiled the new kernel selecting in the xconfig the new option. But after all of these steps I can't use the new match. I have seen in the documentation that I have to go to the userspace/ directory (I suppose that it is the "userspace" directory into the Patch-O-Matic package) and execute make all install, but, when I do that the response is the next:

make: *** No rule to make target 'all'. Stop.

If I try to use the new match (for example, if I write iptables -A INPUT -p tcp -m mport --ports 20:23,80 -j DROP)

the answer that I receive is:

iptables v1.2.5: Couldn't load match `mport':/usr/lib/iptables/libipt_mport.so: cannot open shared object
file: No such file or directory

There are two mport files that are created:

/usr /src/linux-2.4.18.SuSE/include/config/ip/nf/match/mport/module.h

and

/lib/modules/2.4.18-64GB-SMP/kernel/net/ipv4/netfilter/ipt_mport.o

but it doesn't exist the libipt_mport.so file.

Can anybody tell me what it's my problem?

Thank you very much.

Juan.

#1 lore raw

Hello Juan,

Quoted 7 lines · Juan Torres

Hi, I'm trying to load a new match which comes in the Patch-O-Matic package. I have run Patch-O-Matic and I have selected the match I'm interested in (mport), then I have compiled the new kernel selecting in the xconfig the new option. But after all of these steps I can't use the new match. I have seen in the documentation that I have to go to the userspace/ directory (I suppose that it is the "userspace" directory into the Patch-O-Matic package)

nope, that is the userspace directory of iptables distribution. Userspace directory of p-o-m doesn't contain any makefile ;-)

So just download the latest tarball of iptables. Of if you follow the document to the letter, you would be using CVS version which would be layed out properly for you already :)

Quoted 3 lines

and execute make all install, but, when
I do that the response is the next
make: *** No rule to make target 'all'. Stop.

no makefile, see above.

Quoted 9 lines

If I try to use the new match (for example, if I write iptables -A INPUT -p tcp -m mport --ports 20:23,80 -j DROP)
the answer that I receive is:
iptables v1.2.5: Couldn't load match `mport':/usr/lib/iptables/libipt_mport.so: cannot open shared object
file: No such file or directory
There are two mport files that are created:

   /usr /src/linux-2.4.18.SuSE/include/config/ip/nf/match/mport/module.h

and

    /lib/modules/2.4.18-64GB-SMP/kernel/net/ipv4/netfilter/ipt_mport.o
Quoted 3 lines

but it doesn't exist the libipt_mport.so file.
Can anybody tell me what it's my problem?
Thank you very much.

As explained above, just grab the latest iptables tarball and recompile from the userspace directory there (not the one of patch-o-matic). I recommend you to use the CVS version, or a recent snapshot.

Have a nice day,

Fabrice.
--
Fabrice MARIE

"Silly hacker, root is for administrators"
-Unknown