Jump to content

iptables modules


mrmagoo
 Share

Recommended Posts

Hi, I'm using a 2.6.8 kernel & a 2.4.28

 

The two kernels installed netfilter modules at:

/lib/modules/`uname -r`/kernel/net/ipv4/netfilter/

 

The 2.6's are *.ko.gz & 2.4's are *.o.gz

 

There are more in /lib/iptables-mandrake & /lib/iptables-vanilla

/lib/iptables is a symbolic link to /lib/iptables-mandrake

 

These modules are *.so

 

There are many patch-o-matic modules in the mandrake directory...

 

How can I instruct iptables(8) to use these modules instead of the kernel's?

Edited by mrmagoo
Link to comment
Share on other sites

The modules that end in .gz are precompiled modules and come with the mandriva kernel. You mean you have compiled extra iptables modules and you want to use these?

 

If so better is to build a completely new kernel or you would have to delete by hand all the duplicate modules.

Link to comment
Share on other sites

Well, /lib/modules/`uname -r`/* are installed by the kernel rpm,

and /lib/iptables-mandrake/* are installed by iptables...

 

My iptables seems to use the ones installed by the kernel, since I can not specify the TTL target with -j:

# /sbin/iptables -t mangle -I PREROUTING -j TTL --ttl-inc 1

iptables: No chain/target/match by that name

 

A module exists for this target in my system:

/lib/iptables-mandrake/libipt_TTL.so

 

It's strange because /sbin/iptables -j TTL -h returns:

TTL target v1.2.9 options

--ttl-set value Set TTL to <value>

--ttl-dec value Decrement TTL by <value>

--ttl-inc value Increment TTL by <value>

 

and when I try to use it, I get the error above "No chain/target/match by that name"

Edited by mrmagoo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...