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