LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-21-2003, 04:53 AM   #1
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
IPtables/Firewall problem


I hav LFS on my box, and I have tried installing a firewall. This is the procedure I followed:
1. Rebuilt the kernel with the options it stated. The only difference was that in the sub-menu of Networking Options, IP: Netfilter Configuration, I picked every option. The book says to pick every option apart from ipchains (2.2-style) support and ipfw-adm (2.0-style) support, but these did not appear. My kernel version is 2.4.22.
2. Compiled and installed iptables, as per the book (make PREFIX=/usr, make PREFIX=/usr install)
3. Installed the firewall script into /etc/rc.d/init.d. A copy of this script can be found here:
http://danb.homelinux.org:81/books/b.../firewall.html
under the "Personal Firewal section". I removed all insmod lines, since I chose to built the kernel with all features enabled, not as modules.

Now, when I try to run /etc/rc.d/init.d/firewall, I get errors with iptables, and it says something like "you may need to update your kernel or iptables". I can't recall the exact error since I'm at work now, but that was the gist of it. The options I compiled into my kernel can also be found at the above link. I did everything recommended.
Has anyone else had similar problems?
Thanks
Guy
 
Old 11-21-2003, 07:04 AM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
You need iptables to be installed. It is a separate tool for netfilter configuration
 
Old 11-21-2003, 07:16 AM   #3
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Original Poster
Rep: Reputation: 37
I did. That was step 2. It's a little bit smaller than the others, you possibly missed it. I'm not sure what version I have, but it's at least 1.2.6, and possibly 1.2.9
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Firewall / iptables / tomcat problem Tazix Fedora 5 04-20-2005 12:29 PM
Problem Iptables, Firewall rules. Can anybody help ? ZliTroX Linux - Networking 9 09-06-2004 04:48 PM
iptables internet to firewall problem. remigus Linux - Networking 2 09-29-2003 01:27 PM
Firewall Rules Problem with Iptables JereBear Linux - Networking 1 06-16-2002 04:28 PM
Strange iptables firewall problem. Bomber Linux - Security 5 01-15-2002 06:33 PM

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

All times are GMT -5. The time now is 08:03 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