LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2011, 01:54 PM   #1
sk2001
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
kernel-2.6.27 & u32 module


I need to install module u32 into the netfilter module for kernel 2.6.27.

I did not see the source code in the kernel version I have. Pls let me know where can I find the code for U32 module.

I have checked "netfilter.org" and looks like POM is discontinued. Is the u32 module committed to kernel version 2.6.27 or need to patch it. If yes, where can I find the patch?

I building the kernel for a MIPS processor.
 
Old 01-30-2011, 03:05 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz!

Please do not post the same things to multiple sections of LQ. You posted in both "Linux Newbie" and "Linux from Scratch" about the same thing.
Take a moment to read our rules as we specifically mention this;
"Do not post the same discussion in more than one forum. Duplicate discussions can be frustrating for other members. Try and pick the most relevant forum for your post. If you are unsure put it in Linux - General."

With that being said; it seems like you're interested in the U32 "patch" to NetFilter (as described here), right?

Maybe you'll have some luck with the 2.6.33.7 (02aug10) kernel, which will require iptables 1.4.10.
Because what you seem to be looking for is in iptables 1.4.10;

Code:
luser@lhost$ head -12 ./iptables-1.4.10/extensions/libxt_u32.c
/* Shared library add-on to iptables to add u32 matching,
 * generalized matching on values found at packet offsets
 *
 * Detailed doc is in the kernel module source
 * net/netfilter/xt_u32.c
 *
 * (C) 2002 by Don Cohen <don-netf@isis.cs3-inc.com>
 * Released under the terms of GNU GPL v2
 *
 * Copyright  CC Computer Consultants GmbH, 2007
 * Contact: <jengelh@computergmbh.de>
 */
luser@lhost$
 
Old 01-31-2011, 02:27 AM   #3
sk2001
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
kernel-2.6.27 & u32 module

Sorry for multiple postings!

I need to stay on kernel 2.6.27 and incorporate u32 module.
Earlier version of a kernel had the U32 module (ipt_u32.c) and used with iptables-1.3.4.


I think for kernel-2.6.27 the U32 modules file is renamed to xt_u32.c.
I downloaded some versions xtables and did not find the source for xt_u32.c.
If you can point to me correct version of xtables-addons and the source it will be very helpful.
 
Old 01-31-2011, 04:04 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Okay, let me clarify; the u32 module doesn't come with the Linux kernel source.
It's provided by NetFilter, specifically iptables. Version 1.3.4 was released on November 3rd, 2005 (quite old).
Get the source for iptables, either from the repo for your Linux distribution channel, or directly from the NetFilter guys. Then compile a version that meets your needs.
Download Link
Code:
luser@lhost$ find ./iptables-1.3.4 -name "*32*" -type f
./iptables-1.3.4/extensions/.u32-test
./iptables-1.3.4/extensions/libipt_u32.c
./iptables-1.3.4/extensions/libipt_u32.man
luser@lhost$ head ./iptables-1.3.4/extensions/libipt_u32.c
/* Shared library add-on to iptables to add u32 matching,
 * generalized matching on values found at packet offsets
 *
 * Detailed doc is in the kernel module source
 * net/ipv4/netfilter/ipt_u32.c
 *
 * (C) 2002 by Don Cohen <don-netf@isis.cs3-inc.com>
 * Released under the terms of GNU GPL v2
 */
#include <stdio.h>
luser@lhost$
ProTIP: Read their "INSTALL" file. It tells you how to build iptables outside of the kernel tree (this way you won't clobber your existing install).
Quote:
3) If you want to specify alternate directories for installation
(instead of /usr/local/ bin lib man), do this:

% make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man
# make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install

Last edited by xeleema; 01-31-2011 at 04:07 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel-2.6.27 & u32 module sk2001 Linux From Scratch 2 01-30-2011 05:22 PM
[SOLVED] About iptables with u32 module skiron.liu Linux - Software 7 07-03-2009 11:38 AM
Kernel & Kernel-module memory Usage ascetic angel Linux - Kernel 1 09-14-2008 09:30 PM
u32 typedef: kernel source jhwilliams Linux - General 1 09-06-2007 11:42 AM
IPtables: U32 kernel version compatibility maxx.usr Linux - Kernel 4 04-09-2007 02:57 AM


All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration