Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-29-2003, 05:31 AM   #1
Registered: Jul 2003
Location: manila
Distribution: slackware 8 to 9
Posts: 199

Rep: Reputation: 30
firewall..... make it simple needed

hi again people i have five computer and one linuxbox running as router and question is can anyone give me a simple firewall script using iptables....i want to drop all incoming outgoing and forwarding chain then allowing only internal network to have access to my smtp,pop3 and ssh? and also i want to allowed my five computer to access the internet via nat
pls pls helpme iam depending to you guys
Old 09-29-2003, 05:57 AM   #2
LQ Newbie
Registered: Sep 2003
Location: BH
Distribution: Mandrake 9.1
Posts: 8

Rep: Reputation: 0

There are a number of posts on firewalls. Do a search on firewall and you will find some.
I think what you want is IPCop, Guarddog or Firestarter.
Look at them and decide what one would be best for you. IPcop runs on its own standalone. Guarddog is just a front end to the Iptables which is probably what you want. The URL is

Good Luck
Old 09-30-2003, 06:20 AM   #3
Registered: Jul 2003
Location: manila
Distribution: slackware 8 to 9
Posts: 199

Original Poster
Rep: Reputation: 30
thks! but i need only a simple sample of iptables script. dont want to download any packges and install....and i want to learn in the hardway can you help me guys
Old 09-30-2003, 10:26 PM   #4
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Go to

There are several scripts available to download. Just start downloading any that seem like what you want. Put them in /etc/rc.d/rc.firewall and make them executable.

Try the one called Linux Firewall. It is extremely easy to configure.

<edit> The best way to learn iptables (imo) is to start looking through these scripts and reading the comments.

Last edited by /bin/bash; 09-30-2003 at 10:31 PM.
Old 10-02-2003, 04:24 AM   #5
LQ Newbie
Registered: Aug 2003
Distribution: mandrake 8.2 upgrading to 9.1 soon
Posts: 7

Rep: Reputation: 0
hi there,


this is a let me hold your hand, answer the questions and when done will write you a script based on either IPCahins or IPtables.

Ie used it and in about 20 minutes got a script done.

ps I am an extreme novice on iptables and firewalls.

but try it and see, give me a shout as to your thoughts.



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
java, simple program help needed.. marlor Programming 1 11-04-2004 03:40 PM
make failing to make with this error. Help needed? vdemuth Linux - Software 4 06-20-2004 04:08 PM
simple backup script needed ferret_dude Programming 4 05-24-2004 09:45 AM
simple Samba help needed yurlittlepony Linux - Networking 7 01-03-2004 08:51 PM
SIMPLE database needed! rkhartley Linux - Newbie 4 10-30-2003 01:25 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration