LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-26-2004, 01:40 PM   #1
Vindane
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Fedora
Posts: 117

Rep: Reputation: 15
Best Firewall for Slackware?


Hi, I just installed Slackware and am wondering what would be the best choice for a good firewall. I'm still learning my way around Linux so I'm hoping that I might find a user-friendly firewall. Any suggestions?
 
Old 05-26-2004, 01:55 PM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
iptables is integrated with the kernel and is in the default Slackware kernel so all you need to do is setup so iptables rules. That, of course, is easier said than done. I suggest going with Firestarter, a great GNOME utility that makes setting up iptables rules easy. There are others out there of course. What does everyone else use?
 
Old 05-26-2004, 02:06 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
With slackware I do a rc.firewall script in /etc/rc.d which start, stop, restart a firewall.sh script in /etc/firewall. The internet is full of iptable netfilter scripts, you can use some for example. Firestarter need some modification in /etc/rc.d because it use SystemV style init system which is not the slackware default (BSD style init script).
 
Old 05-26-2004, 04:51 PM   #4
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
you can use Guarddog if you like and you get it from www.linuxpackages.net
 
Old 05-26-2004, 05:24 PM   #5
rivang
Member
 
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139

Rep: Reputation: 15
www.iptablesrocks.org
 
Old 05-26-2004, 07:02 PM   #6
Lucinda
Member
 
Registered: May 2004
Location: Atlanta, GA
Distribution: Slackware Current
Posts: 54

Rep: Reputation: 15
You can use this as a simple firewall script:

#!/bin/bash
#
# Basic script to keep the nasties out of slack-lap
# First we make the default policy to drop everything
iptables -P INPUT DROP
iptables -P FORWARD DROP
# Allow established connections and programs that use loopback
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT
# Lets allow ssh to connect
iptables -A INPUT -p tcp --dport 22 -i ppp0 -j ACCEPT
#end script

Make it executable and save it as /etc/rc.d/rc.firewall.

I got this from a good beginner's article at http://www.linuxbeginner.org/modules...rticle&sid=422 .

Regards,
Lucinda
 
Old 05-26-2004, 08:30 PM   #7
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
If you installed the Linux HOWTOs
You can find a most excellent firewall script to tailor to your needs
file:///usr/doc/Linux-HOWTOs/Firewall-HOWTO

The HOWTOs are loaded with many example scripts that can be editted to suit your system and and needs. All one has to do is read them...

So fireup a browser and cut and paste this
file:///usr/doc/Linux-HOWTOs/

Using the firewall script there and the firestarter script which is almost identical to the one in the HOWTOs with more bells and whistles I have a very solid firewall.

Note on firestarter; It is a GUI front end for a sh script, requires root priv to run on slack, breaks on occations, and can write a table that is not known to iptables..
But it is a great way to quickly build a usable firewall script....

Last edited by Nichole_knc; 05-26-2004 at 08:36 PM.
 
Old 05-26-2004, 09:10 PM   #8
Vindane
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Fedora
Posts: 117

Original Poster
Rep: Reputation: 15
Wow I've got alot to do now! Which I don't mind at all! Thanks for all the feedback. It looks like I'll be firing up the HOWto's tomorrow night.

Thanks again!
Vindane
 
Old 05-26-2004, 09:39 PM   #9
ludeKing
Member
 
Registered: Jul 2003
Location: NSW. Australia
Distribution: Ubuntu, Fedora, Slackware
Posts: 181

Rep: Reputation: 30
If you use KDE, there is an integrated package available called KMyFirewall.
http://kmyfirewall.sourceforge.net/
very gui for setting up iptables
 
Old 05-27-2004, 09:51 AM   #10
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
It is amazing all that is in that /usr/doc that people don't read.
 
Old 05-27-2004, 05:30 PM   #11
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Personally, I do like GuardDog a lot..........
 
Old 06-19-2004, 07:47 AM   #12
pkid
LQ Newbie
 
Registered: Jun 2004
Location: South Africa
Distribution: Slackware 10 Dropline GNOME 2.6.1.
Posts: 12

Rep: Reputation: 0
Firestarter can also be downloaded from the http://www.linuxpackages.net website.
 
Old 06-19-2004, 08:43 AM   #13
magicm
Member
 
Registered: May 2003
Distribution: Slackware
Posts: 237

Rep: Reputation: 152Reputation: 152
I've been using
http://projectfiles.com/firewall/
for some time
 
Old 06-19-2004, 11:14 PM   #14
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
I use fwbuilder . It is a nice program and great for setting up more complex firewalls. I had to create my own packages for Slackware 9.1 but it was not complicated. The only downside to FWBuilder is that it does take more work to set up initially.
 
Old 06-20-2004, 03:05 AM   #15
pkid
LQ Newbie
 
Registered: Jun 2004
Location: South Africa
Distribution: Slackware 10 Dropline GNOME 2.6.1.
Posts: 12

Rep: Reputation: 0
This may be a tad off topic but the guy who posted this is a newbie and so like me might not have realised that you need to test your firewall configuration! *dulp* Found 2 cool sites to do that: https://grc.com/x/ne.dll?bh0bkyd2 and http://scan.sygate.com A bit windows centric but pretty cool and fast nonetheless. Hope it helps in some way.
 
  


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
slackware 10 firewall skitzo2005 Slackware 2 07-09-2005 08:53 PM
does slackware need a firewall lellyville Linux - Networking 9 03-17-2005 08:46 PM
Slackware Firewall?? onelung02 Slackware 9 01-22-2005 10:58 AM
Firewall in Slackware 10.0 nickbird Linux - Newbie 2 07-29-2004 04:52 PM
Firewall in Slackware 10.0 nickbird Linux - Newbie 3 07-29-2004 04:51 PM

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

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