LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-23-2003, 05:03 PM   #1
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Rep: Reputation: 15
Compile kernel to setup firewall


Hi,

recently I have upgraded the kernel from 2.4.20-20.8 to 2.4.22 by using back my old kernel config.

I am now try to learn setup firewall on my local LAN using the new kernel.Is there an easier way to compile the kernel for the firewall option enabled in the new kernel without going through the "make config" answering the Q&A ?
 
Old 09-23-2003, 05:12 PM   #2
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Original Poster
Rep: Reputation: 15
I tried browse to the directory /2.4.22 and pico .config but I was not able to get the option CONFIG_FIREWALL in the config file.Shouldn't that this option should be available since the my last kernel version is 2.4.20-20.8?Most of the option which required for setting up the firewall is not available as well..

thank you for answering this cause this is the first time I try to setup a firewall in linux

 
Old 09-23-2003, 05:31 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If I egrep /usr/src/linux/.config -ie "(netfil|iptab)" I get all the Netfilter and iptables entries, but no "CONFIG_FIREWALL".
Are these kernels provided by your distribution (patched kernel), or are they kernel.org kernels (clean)?
 
Old 09-23-2003, 05:40 PM   #4
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Original Poster
Rep: Reputation: 15
hi unspawn,

the clean installation of the RH8.0 came with kernel 2.4.18 and I downloaded the rpm for 2.4.20-20.8 from the redhat website and perform the upgrade.

the .config is the file that I get after I run the make oldconfig in the 2.4.20-20.8 before I upgrade the kernel to 2.4.22.

Executing the above command as you provided in /2.4.22 directory returns this result :

CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
# IP: Netfilter Configuration
CONFIG_IP_NF_IPTABLES=m
# IPv6: Netfilter Configuration
CONFIG_IP6_NF_IPTABLES=m

As far as I know ( after googling), I noticed that there should be a CONFIG_FIREWALL option available in the .config file but it was not there...

thanks,
 
Old 09-23-2003, 06:44 PM   #5
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Original Poster
Rep: Reputation: 15
I just did a futher research and seems like CONFIG_NETFILTER had replace CONFIG_FIREWALL in kernel 2.4.x , am I right ?

any suggestion tutorial I may refer to to setup the firewall from scratch ( more details tutorial will be preferable coz I am new in this firewall setup )...

thanks
 
Old 09-24-2003, 03:46 PM   #6
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Original Poster
Rep: Reputation: 15
any one?
 
Old 09-24-2003, 06:24 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Lotsa ways to start. Search LQ, see the Netfilter site, read the docs that came with your distro, read the "FAQ: Security references" in this forum.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile Firewall Builder Donald1000 Solaris / OpenSolaris 1 05-04-2005 01:52 AM
firewall setup cast55 Linux - Software 3 12-08-2004 03:18 PM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM
CD-RW install/setup/scsi issue with k3b/xcdroast and kernel compile probs Texicle Slackware 17 01-09-2004 01:50 AM
firewall setup Syncrm Linux - General 8 03-25-2002 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration