LinuxQuestions.org
Help answer threads with 0 replies.
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 02-24-2006, 08:43 AM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Firewall Script for Workstation


I want to put together a firewall script to run IpTables on my PCs.

I have searched this forum and read a lot about it on the various web sites and seen the many recommendations for the various GUI front-ends etc.

Nearly all these references are about configuring a firewall for a Linux router. My setup is very simple:

I have 4 PCs on a local network and these obtain an IP in the range 10.0.0.1/15 by DHCP from the ADSL router(10.0.0.2) which is the connection to the internet.

Two of the PCs on the LAN are Linux boxes (Slackware) and it is for these that I want to configure IpTables. Can anyone point me in the direction of an rc.firewall script that is suitable for this simple application?.

Thank you.
 
Old 02-24-2006, 09:57 AM   #2
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
Projectfiles.com

I use projectfiles.com's rc.firewall

http://projectfiles.com/firewall/

It's a one-file script that you put into /etc/rc.d and edit. Most of the settings you won't need to bother with at all if you're just using it as a desktop script (i.e. pretty much zero except to put ports you want open into the section marked PERMIT.

I use it as a desktop firewall too, and a server firewall, and a router firewall.

Pretty much, the unconfigured version will set you up with a full firewall which you can then edit to hone it (blocking ping, allowing internal network ips/interfaces, opening ports etc.)
 
Old 02-24-2006, 09:59 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by Toods
I want to put together a firewall script to run IpTables on my PCs.

I have searched this forum and read a lot about it on the various web sites and seen the many recommendations for the various GUI front-ends etc.

Nearly all these references are about configuring a firewall for a Linux router. My setup is very simple:

I have 4 PCs on a local network and these obtain an IP in the range 10.0.0.1/15 by DHCP from the ADSL router(10.0.0.2) which is the connection to the internet.

Two of the PCs on the LAN are Linux boxes (Slackware) and it is for these that I want to configure IpTables. Can anyone point me in the direction of an rc.firewall script that is suitable for this simple application?.

Thank you.
Hi,

A older Basic setup description on;

http://www2.linuxjournal.com/article/3546

It does describe using ipchains but can be a good guide for general setup of your firewall.

Another good place to help/reference;

http://www.linuxguruz.com/iptables/

You will find FAQ, scripts and just about everything you should need to setup your firewall.

BTW, routers do have firewalls installed and you just need to set them up to your needs. So you should setup the adsl router with a firewall anyway.

I also like to test the firewall with Steve Gibson's 'ShieldsUp' at;
http://grc.com/default.htm

It will do a fairly thorough check of the system and it is free. I've been a fan of Steve's software since the early days of DOS. He's a great assembly language programmer!

HTH!

Last edited by onebuck; 02-24-2006 at 10:00 AM.
 
Old 02-24-2006, 01:12 PM   #4
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Quote:
Originally Posted by ledow
I use projectfiles.com's rc.firewall

http://projectfiles.com/firewall/
Seconded. The ProjectFiles script is extremely versatile, but easy to configure. Basically, it writes iptables rules for you. 'Out of the box' it's a straight firewall, but as ledlow said, it can handle routing too. Get the latest version - don't bother with the old "installer" version, how hard can it be to copy a file to /etc/rc.d/ and chmod +x it?
 
  


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
Firewall script simcox1 Linux - Security 7 11-13-2005 12:08 PM
Where should this firewall script be placed? wardialer Linux - Security 84 02-14-2005 07:06 PM
slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup win32sux Debian 1 03-06-2004 09:15 PM
Firewall- install RH9 as server or workstation? hookem1994 Linux - Newbie 2 11-14-2003 07:13 AM
Could you look over my firewall script please... Grim Reaper Linux - Networking 8 03-26-2003 03:33 AM

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

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