Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help with installing a custom netfilter module...

Reply
Thread Tools Display Modes

Help with installing a custom netfilter module...

 
 
TySoft
Guest
Posts: n/a

 
      08-04-2003, 08:29 PM
I've been working on this for a few days straight, finally need to ask
for help.

I'm running Slack 9 and I'm trying to add in a small netfilter module.

Here are the instructions to install it

quote:ipt_TRIBES.h
header file for kernel module - place in
/usr/src/linux/include/linux/netfilter_ipv4/

ipt_TRIBES.c
kernel module. place in /usr/src/linux/net/ipv4/netfilter
You must modify the Makefile and Config.in files in that directory
to include,
and also modify /usr/src/linux/Documentation/Configure.help (I
copied TOS's lines)
make menuconfig and then recompile at least your modules with
mangle table
and TRIBES support. Make sure everything is enabled with lsmod



Well, I think I'm having trouble modifying the Makefile and Config.in files.

I added this line to the Makefile:


obj-$CONFIG_IP_NF_TARGET_TRIBES) += ipt_TRIBES.o



And this to the Config.in file:


dep_tristate ' TRIBES support' CONFIG_IP_NF_TARGET_TRIBES
$CONFIG_IP_NF_IPTA$



Well, first of all I'm trying to recompile my entire Kernel after this.
If I compile just the modules I'm unsure of what to do? I do a make dep;
make modules; make modules_install - would I just copy the compiled
files into my existing Linux install's netfilter dirs with all the other
existing mods then do a modinst (or whatever the module install command
is) on them? I borked something during the Kernel compile, and I wasn't
able to boot to the new Kernel. But when I tried the modinst (?) command
on the modules I got some Unresolved Symbol errors.

Since I'm just guessing at what I'm adding to the config.in & makefile I
think that is my problem.

This should allow me to read the server list for a game off of the
'master server' for the game and export it to a webpage w/ a combo of
Apache, ANT and Tomcat. Someone else had this working but is no longer
able to host it, that's why I'm working on this now.

Any help would be appreciated, I'm clueless with this Makefile & Config.in.

Thank you!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh vs. scp in custom PAM module Uwe Drekert Linux Networking 1 08-31-2009 11:29 AM
Problem with netfilter in a kernel module Aashay Shringarpure Linux Networking 1 03-02-2009 07:58 AM
possible issues on SMP machine for Netfilter based kernel module Rohit Linux Networking 0 05-16-2007 10:55 AM
How to get data in kernel SEND buffer for a TCP socket from a netfilter based kernel module Rohit Linux Networking 0 05-10-2007 12:27 PM
How to detect TCP sequence number wrap around in a netfilter kernel module Rohit Linux Networking 0 05-10-2007 07:28 AM



1 2 3 4 5 6 7 8 9 10 11