LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-14-2010, 03:56 PM   #1
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
Safety of iptables firewalls if you don't know what you're doing.. or the easiest fw.


Other than Firestarter, how safe is it to use an iptables firewall for Linux if you know the basics of iptables but not the details and not exactly what you're doing with iptables? I want to be very secure without configuring iptables myself if possible or doing as little as possible. If you don't think iptables is safe if you don't really know what you're doing, can you please tell me which firewall you can use (Slackware specific, preferably) that is the easiest to install and configure? Are there any that work like free Windows firewalls, other than Firestarter? I've looked around and looked at slackbuild and can't find a Firestarter package, I searched this site also and saw something about the reason there isn't one. I need help. I'm concerned with my security and I don't want to write my own iptables firewall - I don't fully know what I'm doing.

Last edited by pr_deltoid; 06-14-2010 at 03:57 PM.
 
Old 06-14-2010, 03:58 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
The default on redhat/centos and many distributions disable access to most things by default... that being said, it's not easy if you don't know iptables, but if you don't it IS worth learning. Honestly there is no security product that is effective if you don't know what you're doing.
 
Old 06-14-2010, 04:00 PM   #3
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
I read the how-to and tutorials (not the NAT and hacking) from the netfilter site, but I don't really know WHAT to do with the settings. I understand how to configure iptables, I just don't really know what to do with iptables to make it very secure. I guess I could just copy Firestarter's configuration, huh?
 
Old 06-14-2010, 04:36 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by prdeltoid View Post
Other than Firestarter, how safe is it to use an iptables firewall for Linux...
For Linux??? I think that my advice might have quite different elements if you were the admin of a server farm from that I would give if you were a typical home user, both of whom could be using Linux.


Quote:
..if you know the basics of iptables but not the details and not exactly what you're doing with iptables?
Iptables itself isn't that difficult to learn, but you will have to know about networking in order to use it.

Quote:
I want to be very secure without configuring iptables myself if possible or doing as little as possible.
Iptables itself isn't that difficult to learn...oh, sorry, I've already done that. There are quite a number of iptables scripts that you can find scattered around the 'net, and configuring them isn't difficult, if you know what you want to do. Have a look at:
linuxhomenetworking
frozentux

Quote:
Are there any that work like free Windows firewalls, other than Firestarter?
I don't directly know how Windows firewalls work, but if what you mean is that you want a GUI to configure, there are quite a few. if you try this search, you'll find a few including this

Quote:
I've looked around and looked at slackbuild and can't find a Firestarter package
I did also see mention of guarddog being available for an earlier version.

Last edited by salasi; 06-15-2010 at 02:28 AM. Reason: typo
 
Old 06-15-2010, 02:53 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
...didn't see this when I wrote my previous reply...

Quote:
Originally Posted by prdeltoid View Post
I understand how to configure iptables, I just don't really know what to do with iptables to make it very secure.
Your first assumption should be that you want to disable everything unless you actually need it. Of course, that only raises the question of how little you can open up and still do what you want to do...

If the problem is that you don't know which ports associate with which services, there are hints here:

/etc/services

(Although it is possible to use processes on ports other than the default one, so you might have to look in your conf files for that).

Also, netstat can be used to see what is listening on which port.

Quote:
I guess I could just copy Firestarter's configuration, huh?
Yes. There is an argument that this (running a gui rule-generator on another machine) is the normal paranoid's way forward. This enables you to run the rule generator on a machine that is not itself under direct threat of attack and so removes the possibility that the miscreant gets in and substitutes a 'bad' version of the rule generating program.

(In a security context, I am not in any way suggesting that being paranoid is bad; the opposite, in fact.)
 
Old 06-15-2010, 11:51 AM   #6
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
Thanks.
 
Old 06-15-2010, 01:12 PM   #7
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Basically you want to disable all NEW state connections in bound unless they're explicitly allowed. You probably want to allow any state RELATED,ESTABLISHED connections. If you have nothing enabled from outside (a good configuration for a desktop) then you're about as secure as you can get. Servers should only have the required remotely accessible services enabled.
 
  


Reply


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
Firewalls - IPTABLES and Honeypots metallica1973 Linux - Security 8 09-05-2005 02:53 PM
Squid and IPTables - nooB looking for safety xprezons Linux - Security 2 08-08-2005 07:31 AM
Firewalls and Iptables - trying to see a tree in the forest! Mathijs Linux - Networking 1 03-17-2005 12:11 PM
Firewalls and Iptables Gentoo20 Red Hat 7 10-05-2004 03:44 PM
quick and dirty iptables firewalls -Nw- neX Linux - Security 3 06-04-2004 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:34 PM.

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