Help - Search - Members - Calendar
Full Version: Iptables
Linuxhelp > Support > Technical Support
ch_sujith
Hey can any one help me

I am using fedora core 2 installation
Now I want to work on traffic control using layer7 filter
So for that I need to patch iptables
I am new to linux

But in my installation I cant find source code for iptables.. I am confused where to patch it… bcoz I cant find that directory … I can see the iptables as an executable file in /sbin directory… is it the location to patch??????? I did so but it didn’t work out

Then when I downloaded a new iptables files from netfilter.org and placed in /usr/src/linux and when I executed the commands as given in a documentation page


Next up we will compile the IPtables package. To do so, enter in the following commands from the IPtables directory.
make pending-patches KERNEL_DIR=/usr/src/linux
make KERNEL_DIR=/usr/src/linux
make install KERNEL_DIR=/usr/src/linux

it shows the following error

/usr/src/linux/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead.

What does it mean? How exactly to patch iptables and where I can find iptables directory in my installation

Help greatly appreciated ;

Looking for rescue

sujith
hughesjr
iptables is part of the kernel .... and redhat/fedora patches the crap out of the stock kernel, so getting a patch designed to run on a stock kernel to apply to a FC2 kernel would be very unlikely ...

But, if you want to try, you would need to install the kernel-source (or kernel-sourcecode) package that matches with your current kernel.

Once the kernel-source is installed, you should use the kernel source version that matches your kernel.

To see your kernel version do this:

uname -r

the result for me is:

2.6.8-1.521

so I would use:
/usr/src/linux-2.6.8-1.521

instead of:

/usr/src/linux
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.