LinHES Forums http://forums.linhes.org/ |
|
kernel panic when building netfilter kernel support in R5.5 http://forums.linhes.org/viewtopic.php?f=6&t=18993 |
Page 1 of 1 |
Author: | graysky [ Thu Sep 25, 2008 1:07 am ] |
Post subject: | kernel panic when building netfilter kernel support in R5.5 |
In order to have moblock work on R5.5, it needs netfilter kernel support via a module or built-in. According to jre, the developer of moblock, the kernel that comes with R5.5 doesn't have this option. I'm no kernel person so I'm wondering how what one would need to get it working under R5.5. Does it require a brand-new kernel? Here is the post by jre for more technical info. Thanks! |
Author: | cecil [ Thu Sep 25, 2008 6:47 pm ] |
Post subject: | |
Grab the source are recompile netfilter as a module. |
Author: | graysky [ Fri Sep 26, 2008 2:20 am ] |
Post subject: | |
Thanks cesman. I've googled around for the procedure to do so, but haven't found anything I can sink my teeth into. I'm assuming the source you're referring to is located on www.netfilter.org but the rest of the procedure is unclear to me. Can you point me in the right direction? ![]() Thanks! |
Author: | graysky [ Mon Sep 29, 2008 2:14 pm ] |
Post subject: | |
..anyone? I believe R5.5 comes with the source... |
Author: | cecil [ Tue Sep 30, 2008 6:33 pm ] |
Post subject: | |
R5.5 doesn't come with the kernel source. It comes with the headers. You need the full kernelsource based on what I've seen. I'm fairly certain there are a few threads on here about recompiling... |
Author: | graysky [ Wed Oct 01, 2008 1:42 pm ] |
Post subject: | |
Thanks for the tip, I found several threads and am trying it out. As always, I will write-up a HOWTO if I'm successful. Naive question about kernel modules in general: if I do successfully build the needed modules for moblock, are they portable? In other words, can I simply copy them off the working system into a virgin R5.5 install and make them publicly available in a .tgz for folks to d/l or is it more complicated? The result was a kernel panic ![]() Details of what I did: Code: $ wget ftp://knoppmyth.net/R5/linux-source-2.6.23-chw-4_2.6.23-chw-4-10.00.Custom_all.deb # dpkg -i linux-source-2.6.23-chw-4_2.6.23-chw-4-10.00.Custom_all.deb ; cd /usr/src ; tar xjvf linux-source ; tar xjvf linux-source-2.6.23-chw-4.tar.bz2 ; cd linux-source-2.6.23-chw-4 # cp /boot/config-2.6.23-chw-4 .config # make xconfig Enable the following as modules by hitting the 'M' key: search for 'conntrack' and enable it - "Conntrack" connection tracking match support and Netfilter connection tracking support search for 'state' and enable it - "state" match support search for 'connmark' and enable it - "connmark" connnection mark match support and "connmark" target support search for 'IPV4' and enable it - IPv4 connection tracking support (required for NAT) search for 'netfilter' and enable it - "connlimit" match support" saved it then: Code: # make -j2
# make install (answered yes to re-running lilo) # reboot Upon the reboot I hit a kernel panic. Can't post the output since I can't boot the testbox. Anyway, it was a failure ![]() Any ideas what I did wrong? References This thread This thread This thread This thread |
Author: | graysky [ Fri Oct 03, 2008 3:49 pm ] |
Post subject: | |
...is there a way to read the /var/log/dmesg for the failed boot attempt after booting into a good kernel so I can attempt to debug this? |
Author: | graysky [ Sat Oct 04, 2008 4:56 am ] |
Post subject: | |
It seems like the kernel panic occur when I enable the "Netfilter connection tracking support" option either as included or as a module. Is there something else contained in the out-of-the-box R5.5 .config that would interact to cause a kernel panic with this? It seems the "Netfilter connection tracking support" and a few suboptions are required (taken from the moblock page on the Gentoo-wiki): ![]() Is this a problem with this particular part of the 2.6.23-chw-4 kernel or something else that the default KMR5.5 kernel has compiled... or??? |
Author: | graysky [ Sat Oct 04, 2008 5:28 pm ] |
Post subject: | |
FINALLY got it. The missing step for me was running a #make modules_install. Please see my HOWTO: Installing Moblock on R5.5 thread for a complete walk though of the steps. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |