firewall

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
Subject: firewall
On Wed, 26 Apr 2000, Joel Dudley wrote:

> Is there any way to see which options are configured in your current kernel?
> I want to see if I have masq and all that good stuff turned on already


Presuming you're using kernel 2.2.x, look at /proc/net/ to see if you have
ip_fwchains and ip_masq. I think those are the two you need.

You could also just run "ipchains -L -n". If that complains about your
kernel not having what it needs, you're not setup :).

> before I recompile. Also, how do you back up your old kernel and its mods??


The kernel should be under /boot somewhere. Look at /etc/lilo.conf to find
out which one you're using. Modules are under /lib/modules/2.2.x. If
you're installing a new version, e.g. going from 2.2.12 to 2.2.14 then
they won't stomp on each other. If you're installing the same version, but
recompiled, then either move your current tree to something else or just
make a tarball of it, e.g. "cd /lib/modules; tar cf /tmp/2.2.14.mods.tar
2.2.14".

Your /usr/src/linux/.config holds the last configuration info you've used
for building a kernel.

ciao,

der.hans
--
# home.pages.de/~lufthans/ www.OpNIX.com
# You can't handle the source! - der.hans