Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Re: /proc/config support
PostPosted: Thu Apr 15, 2004 1:56 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Shermozle wrote:
Can you please enable /proc/config support in the standard kernels? This allows processes to find out what is available in the running kernel.

My firewall, firehol, uses this to work out what it has to work with.

This is turned on in the 2.6-um kernel. Sorry for not looking myself, but are you sure this is an option on 2.4?

-Chris


Top
   
 Post subject:
PostPosted: Tue Apr 27, 2004 11:26 pm 
Offline
Senior Newbie

Joined: Mon Apr 05, 2004 5:04 am
Posts: 10
Is quota support enabled in the 2.6 kernel? I get this error:

li3-154:~$ quota
quota: Error while detecting kernel quota version: No such file or directory


Top
   
 Post subject:
PostPosted: Wed Apr 28, 2004 12:33 am 
Offline
Senior Newbie

Joined: Mon Apr 05, 2004 5:04 am
Posts: 10
Doh... judging by /proc/config(.gz), it looks like quota support *is* enabled in the 2.6 kernel. Which leaves me clueless as to why I can't get it to work!

-- Matthew


Top
   
 Post subject: Firehol setup
PostPosted: Tue Aug 15, 2006 6:46 am 
Offline
Senior Newbie

Joined: Tue Dec 06, 2005 2:15 pm
Posts: 9
Just putting this in this thread to hopefully help others, especially those that found this thread from http://www.harrysufehmi.com/phpwiki/index.php/SettingUpLinuxServer#firewall

If you're starting FireHOL and you get:
Quote:
Starting iptables firewall: FireHOL ...
IMPORTANT WARNING:
------------------
FireHOL cannot find your current kernel configuration.
Please, either compile your kernel with /proc/config,
or make sure there is a valid kernel config in
/lib/modules/2.4.29-linode39-1um/build/.config,
/usr/src/linux/.config or /boot/config-2.4.29-linode39-1um

Because of this, FireHOL will simply attempt to load
all kernel modules for the services used, without
being able to detect failures.


FireHOL needs to find a kernel config in one of the above listed places. I wrote the following bash script for me to run if I have a kernel change (disclaimer, I'm a bash noob). The last line may need changing depending on your OS (I'm using Ubuntu), or just omit it and restart FireHOL as you like to:

Code:
#! /bin/bash
if test ! -d /usr/src/linux
then
    mkdir /usr/src/linux
fi
if test -f /usr/src/linux/.config
then
  mv /usr/src/linux/.config /usr/src/linux/.config.bak
  gzip /usr/src/linux/.config.bak
fi
cp /proc/config.gz /usr/src/linux/config.gz
gunzip /usr/src/linux/config.gz
mv /usr/src/linux/config /usr/src/linux/.config
/etc/init.d/firehol restart


If the following is also part of your FireHOL startup message:
Quote:
Stopping: /etc/default/firehol forbids it.
done.


You need to edit /etc/default/firehol so it says:
Code:
START_FIREHOL=YES


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: mwchase and 2 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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group