LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-10-2006, 03:57 PM   #1
John Velman
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.2
Posts: 33

Rep: Reputation: 15
firestarter


I installed the firestarter binary package for slackware 10.1 from Linux Packages a few days ago (specifically, firestarter-1.0.3-i486-1pcx.tgz). (I'm running 10.1 with kernel vmlinuz-ide-2.4.29 from the 10.1 CD. My processor is a fairly (!) old pentium II 400mhz. At the moment, my window manager is fluxbox.)

firestarter seems to work well, so long as I start it from an X widow console as root (by way of su). I tried getting it to start on boot by putting an rc.firewall in /etc/rc.d as suggested in a much earlier post on this forum (IIRC). Specifically,

Quote:
bash-3.00$ cd /etc/rc.d/
bash-3.00$ ls -l rc.firewall
-rwxr-x--x 1 root root 99 2006-03-07 14:37 rc.firewall

bash-3.00$ sudo cat rc.firewall
# simplest script for starting firestarter
# John Velman
# 7 March 2006
/usr/bin/firestarter -s
bash-3.00$
When I boot, dmesg shows "Firewall started", but ps au doesn't show it running.

Same thing happens when I run firestarter -s after su-ing to root from the login console.

Also, in an X console, if I try to run firestarter from an sudo, instead of from root as an su, it tells me

Quote:
Fatal error: Your kernel does not support iptables.
Firewall not started
I'm obviously missing something. I've considered getting the source and compiling my own package to see if that makes any difference, but thought I'd ask for help first.

Thanks,

John Velman
 
Old 03-10-2006, 04:33 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
The error message says your kernel doesn't support iptables. Which kernel version are you using? Read your Slackware and Firestarter documentation please. You need a kernel that has netfilter enabled. Earlier linux versions used ipchains instead of iptables.
 
Old 03-10-2006, 09:19 PM   #3
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
I strongly advise that you read this THREAD and especially the second post.
 
Old 03-11-2006, 12:36 AM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Ok. I have firestarter installed. I tried to do what you mentioned while being root.
It also doesn't work. firestarter -s shows that firewall started but ps aux |grep firestarter shows nothing.
However, GUI works perfectly.
Try issuing this command:
firestarter --start-hidden (it works for me).
My firestarter is compiled from source.
 
Old 03-11-2006, 02:50 PM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
read this:

http://www.fs-security.com/docs/persistence.php


run "firestarter" as root to use the gui/wizard
 
Old 03-12-2006, 05:54 PM   #6
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Without an /etc/rc.d/rc.firewall your firewall won't be started, until you start firestarter manually. The thing is, YOU DON'T NEED FIRESTARTER after you get your firewall set up! The only time you need to run firestarter is when you want to make changes to you firewall, other than that it's not necessary.

Also, as was noted in an earlier post, you will need iptables and netfilter compiled with the kernel (I have mine compiled as modules). It's been a while since I ran 2.4.29 but I *thought* that iptables was included in it, but maybe not. If it isn't then you need to get the 2.4.31 kernel from a Slackware mirror somewhere and install it (kernel-ide-2.4.31 and kernel-modules-2.4.31 minimum you may want to get kernel-source-2.4.31 to be sure).

Here is my rc.firewal (verbatim), if you want to copy it go ahead.

Code:
#!/bin/bash
#rc.firewall start/stop/restart the Firestarter firewall service
#
firewall_start () {
if [ -x /etc/firestarter/firestarter.sh ]; then
   echo "Starting firewall: /etc/firestarter/firestarter.sh"
   /etc/firestarter/firestarter.sh start
fi
}

firewall_stop () {
  /etc/firestarter/firestarter.sh stop
}

firewall_restart () {
  /etc/firestarter/firestarter.sh stop
  /etc/firestarter/firestarter.sh start
}

case "$1" in
'start')
  firewall_start
  ;;
'stop')
  firewall_stop
  ;;
'restart')
  firewall_restart
  ;;
*)
 echo "usage $0 start|stop|restart"
esac
Just add this to a text file, save it as rc.firewall, move it to /etc/rc.d and make it executable and, after you use firestarter to set up your firewall, it'll start it with every boot.

HTH,
MMYoung

Last edited by MMYoung; 03-12-2006 at 05:55 PM.
 
Old 03-12-2006, 06:34 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Actually, on the Slackware 10.2 setup, you can just symlink your firewall in the place of rc.firewall. That's what I did- no modifications to anything Slackware necessary- and it works great.

I use arno and so far I'm pretty happy with it. I can install it in a new machine in less than 5 minutes (after having done it a couple of times!)
 
Old 03-13-2006, 01:47 AM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Quote:
Originally Posted by MMYoung
Without an /etc/rc.d/rc.firewall your firewall won't be started, until you start firestarter manually. The thing is, YOU DON'T NEED FIRESTARTER after you get your firewall set up!
But I need to start it manually each time I boot up if I have compiled it from source. Or I am wrong? Is firestarter GUI actually a firewall or does it only just modify rc.firewall script?

Last edited by Alien_Hominid; 03-13-2006 at 01:49 AM.
 
Old 03-13-2006, 05:37 AM   #9
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by Alien_Hominid
But I need to start it manually each time I boot up if I have compiled it from source. Or I am wrong? Is firestarter GUI actually a firewall or does it only just modify rc.firewall script?
Nope, just add my rc.firewall to /etc/rc.d, or symlink /etc/rc.d/rc.firewall to /etc/firestarter/firestarter.sh as Randux suggested, and this will start your firewall when you boot. If you need to make changes to your firewall just start firestarter, make your changes, and close it out. The only reason to start firestarter is if you want to monitor any hits that your firewall detects.

Later,
MMYoung
 
Old 03-13-2006, 06:29 AM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
OK. Got it. I always thought that firestarter only works when I can see its GUI so I had added it to my session list. Now will try your script.
 
Old 03-14-2006, 02:59 PM   #11
John Velman
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks to all who have responded. It appears that my kernel does support IPTables, and netfilter.

One further question: MMYoung has refered to "firestarter.sh". My distribution (from Linux Packages --firestarter-1.0.3-i486-1pcx.tgz -- for slack 10.1 doesn't contain a "firestarter.sh.") Is this provided only with the source, or with the slackware 10.2 package?

Thanks again!

John Velman
 
Old 03-14-2006, 05:46 PM   #12
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by John Velman
One further question: MMYoung has refered to "firestarter.sh". My distribution (from Linux Packages --firestarter-1.0.3-i486-1pcx.tgz -- for slack 10.1 doesn't contain a "firestarter.sh.") Is this provided only with the source, or with the slackware 10.2 package?
You won't find it, cause it ain't there . IIRC, it is "created" after you run firestarter the first time and set up your firewall.

Later,
MMYoung
 
  


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
Firestarter xpression Linux - Newbie 4 09-13-2005 12:27 PM
FIreStarter webwolf70 Linux - Security 2 06-01-2005 02:05 PM
Firestarter InEeDhElPlInUx Linux - Networking 3 04-19-2004 11:49 AM
Firestarter Nexer Linux - Security 4 05-18-2003 10:37 AM
Firestarter FW hath Linux - Security 3 02-05-2002 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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