Skip to contentSkip to conversation

Problems installing Netfilter extensions

PATCH [email protected] 2 participants 2 messages Jun 20, 2003 – Jun 23, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hi Filip,
First, thanks for your help

I don't know if I'm looking another directory, but in my directory
/userspace inside the patch-o-matic packet (I'm using patch-o-matic-20030107) there is no any INSTALL file, so, when I use "make" to build the binaries, I receive the next error message:

make: *** No targets specified and no makefile found. Stop.

Thank you very much

Juan

Quoted 28 lines

> # make all install
>
> This last step doesn't work!! When I execute this
command in the
> userspace/ subdirectory inside the patch-o-matic
directory, It
appears
> an error saying that It can't find the "all" option (or
something
> similar), I have proved to do "make all" and "make install",
but it
> doesn't work anyway
>
>
> What I'm not doing properly??
>
Hi Juan,

There appears to be an error in the Netfilter extensions HOWTO. As you can see from the INSTALL file in the userspace
directory, there is no "make all", only a "make" to build the
binaries.
I think the patch below updates the documentation to reflect this. Thanks for pointing this out.

Regards,
Filip

#1 lore raw
Quoted 8 lines · On Fri, 2003-06-20 at 20:02, [email protected] wrote:

Hi Filip,
First, thanks for your help

I don't know if I'm looking another directory, but in my directory
/userspace inside the patch-o-matic packet (I'm using patch-o-matic-20030107) there is no any INSTALL file, so, when I use "make" to build the binaries, I receive the next error message:

Quoted 6 lines

make: *** No targets specified and no makefile found. Stop.

Thank you very much

Juan

Hi Juan,

Ok, I've just downloaded this pom tarball myself. The thing is: if you want to extend the netfilter/iptables functionality with new matches and/or new targets, you need to patch and recompile both your kernel and iptables userspace application.

AFAIK, the patch-o-matic tarbal you downloaded can only be used to patch the kernel, but not the iptables userspace application.

The iptables userspace command is compiled with a simple

make && make install

when the KERNEL_DIR variable is set correctly, and the kernel is compiled and installed the standard way.

So, when you want to compile a new iptables program, you will need to download the iptables tarball and go from there.

While you're at it, please realize that the patch-o-matic tarball you refer to is quite old - if you are using a recent kernel (i.e. 2.4.20+), you'll probably be better off downloading everything from CVS.

Regards,
Filip