Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-26-2004, 01:40 PM   #1
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
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
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
With slackware I do a rc.firewall script in /etc/rc.d which start, stop, restart a 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
Registered: Nov 2003
Distribution: Linux and BSD
Posts: 229

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

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

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

# 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 -d -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 .

Old 05-26-2004, 08:30 PM   #7
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

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

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
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!
Old 05-26-2004, 09:39 PM   #9
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.
very gui for setting up iptables
Old 05-27-2004, 09:51 AM   #10
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,263

Rep: Reputation: 54
It is amazing all that is in that /usr/doc that people don't read.
Old 05-27-2004, 05:30 PM   #11
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
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 website.
Old 06-19-2004, 08:43 AM   #13
Registered: May 2003
Distribution: Slackware
Posts: 221

Rep: Reputation: 144Reputation: 144
I've been using
for some time
Old 06-19-2004, 11:14 PM   #14
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
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: and A bit windows centric but pretty cool and fast nonetheless. Hope it helps in some way.


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
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 > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:32 AM.

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