Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-08-2004, 08:24 PM   #1
LQ Newbie
Registered: Dec 2004
Posts: 8

Rep: Reputation: 0
how to make an effective firewall with iptables

would you guys say this is an effective firewall script,

iptables -F
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth0 -j DROP
Old 12-08-2004, 10:18 PM   #2
Registered: Jun 2003
Location: Denver, CO
Distribution: Debian
Posts: 95

Rep: Reputation: 15
would you guys say this is an effective firewall script,
No, you need a whole lot more stuff. I'd go to:

...where you answer a bunch of questions, and it writes an IPTABLES or IPCHAINS firewall for you. Then you'll see what you're missing.

Sadly, you now need to ask the author for a password, but it's free.

But personally, I'd use IPCHAINS. It looks like you're not intending to do anything which would require IPTABLES, and IPCHAINS is simpler to configure.

Last edited by jlangelier; 12-08-2004 at 10:48 PM.
Old 12-08-2004, 10:28 PM   #3
Registered: Nov 2004
Location: Brisbane, Australia
Distribution: Fedora Core 5
Posts: 89

Rep: Reputation: 15
This may also help..

Old 12-08-2004, 11:44 PM   #4
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
My reccomendation would be to download a GUI frontend for iptables, specifically GuardDog. It works great and is very effective.


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
Iptables with iptables-firewall.conf arno's matt3333 Slackware 16 06-28-2007 07:20 AM
how to make iptables firewall ruls for squide proxy AZIMBD03 Linux - Security 1 03-22-2004 11:12 AM
IPTABLES firewall Vs rc firewall netguy2000 Linux - Security 7 02-28-2004 04:31 AM
Need Help with Firewall, iptables!!!! jamesws Linux - Networking 2 02-11-2002 05:56 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM > Forums > Linux Forums > Linux - Newbie

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