View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Sep 25, 2008 1:07 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Last edited by graysky on Sat Oct 04, 2008 4:59 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 25, 2008 6:47 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
Grab the source are recompile netfilter as a module.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2008 2:20 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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? :oops:

Thanks!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 29, 2008 2:14 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
..anyone? I believe R5.5 comes with the source...

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Last edited by graysky on Sat Oct 04, 2008 4:59 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 30, 2008 6:33 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
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...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 01, 2008 1:42 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 3:49 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
...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?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 04, 2008 4:56 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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):

Image

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???

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 04, 2008 5:28 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu