LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-19-2003, 03:24 AM   #1
Bernhard
LQ Newbie
 
Registered: Jan 2002
Location: Bielefeld/Germany
Distribution: SuSE 7.3 German
Posts: 26

Rep: Reputation: 15
Question Why a firewall with Linux?


Dear Linux-friends,
why could it be necessary to have a firewall with Linux?

It should only be necessary to protect the personal data, no?

The harm to system data or installation of unwanted software should be prevented by the user concept, I think.

Please give me some comments or a link to an answer already made. Thanks a lot in advance!

Yours,
Bernhard
 
Old 04-19-2003, 04:22 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
A firewall doesn't neccessary block access to personal data, it blocks access to services, ping replies, etc.

Blocking access to services should be implemented in at least 2 layers: 1st of course by the netfilter (= kernel firewall) layer, (optionally 2nd one by tcp_wrappers) and last by the application layer (binding the service to an ip address, etc).

Quote:
The harm to system data or installation of unwanted software should be prevented by the user concept, I think.
A user with no privileges can't install software if the system is properly configured.
 
Old 04-19-2003, 04:29 AM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Run your firewall while you do some further reading.
Good Luck.
 
Old 04-21-2003, 03:00 AM   #4
bigshoes
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
firewall with Linux? no...firewall everything that connects to the Internet. (no, i'm not paranoid. 'they' *are* out to get me =P )

your 'personal data' may not be what is at risk without a firewall.

it is your *personal computer* that is at risk without a firewall.

would you let a total stranger - a cracker - access your computer and its resources? the cracker may or may not be interested in your personal data (email and such) but the cracker would be interested in using your computer without your knowledge, without your permission, and you may get the blame for what the cracker did with your computer...your $$$, your time to fix damages/intrusions, your reputation is at risk...

a firewall is a security tool. properly configured firewalls secure your computers/servers from unwanted - external and internal - usage.

(i have done some reading on the subject =) )
 
Old 04-21-2003, 09:51 AM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
In theory the user concept should work, but unfortunately it is alot easier to get unauthorized root access if you already have user access. Many of the exploits out there for linux are local exploits that use some type of elevation of priveldges. The remote exploits are much more rare (and dangerous).

On top of that, many of the services (httpd, sendmail) themselves are vulnerable to attacks. Because they often run as some type of priveledged user they are big targets for attack. Not running a firewall is really just like leaving yourself wide open and it is just a matter of time before you get 0wned. So unless you want your linux box to be a warez server or part of your local script kiddies DDOS crew, you absolutely want a firewall of some sort.

Last edited by Capt_Caveman; 04-21-2003 at 09:53 AM.
 
Old 01-09-2004, 10:38 PM   #6
Bernhard
LQ Newbie
 
Registered: Jan 2002
Location: Bielefeld/Germany
Distribution: SuSE 7.3 German
Posts: 26

Original Poster
Rep: Reputation: 15
Dear friends,
thanks a lot for your replies! Now the next step:
What firewall-software would you recommend?
I appreciate your answers and/or links to answers already
available.
Yours,
Bernhard
 
Old 01-10-2004, 01:34 PM   #7
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Quote:
What firewall-software would you recommend?
iptables

General links about security can be found in this forum:
http://www.linuxquestions.org/questi...threadid=45261

for newbies:
http://www.linuxquestions.org/questi...threadid=62121

For me, it was useful to begin with iptables-HOWTO
after that, to learn more it could be nice the iptables tutorial
Regards
 
Old 11-03-2005, 12:11 AM   #8
outlook
Newbie
 
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
re:

The troubleshoot outlook express and pst repair has prompted you a path of the Outlook Express files' storage. And now save the damaged dbx files in the safe folder, they can be useful.
 
Old 11-04-2005, 10:20 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
The main purpose of a firewall is to separate the traffic that is inside from the traffic that is outside. For example, you probably don't want a user in Singapore from accessing your Windows shares (if you have any), or printing p0rn to your printers, but without a firewall that nasty-person far-away is "on your network."

A firewall is simply a filter. It gets inputs from two or more cables and decides what traffic may, and may not, pass from one cable to another. Or, it sits on the inputs to your computer and decides what traffic may pass in or out.

Don't log on without one.
 
Old 11-04-2005, 12:42 PM   #10
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Get GuardDog or Firestarter. They are both graphical frontends to IPTables, which should really be used by anyone who is new to the concept of firewalls in general and hand configured firewalling scripts in particular.
 
Old 11-06-2005, 06:16 PM   #11
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
You could also have a look at shorewall (www.shorewall.net) as it allows you to configure iptables (and a lot of the other networking settings) using some neat and easy to edit config files. It also has some good howtos on the site to get you started. If you prefer a GUI though go with one of the ones XavierP suggested.
 
Old 11-07-2005, 06:50 PM   #12
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
A simple router between your modem and workstation is fine.They are cheap enough these days and has a 4 port switch,web access,vpn,remote admin,etc etc.Under $80 here in the states for basic router.

As for software firewall,I dont know of many that are application based...allow/deny out there.Like windows sygate,zone alarm or outpost.Guarddog and firestarter are not like that at all,they are just iptable front ends limited to iptable rules.
 
Old 11-08-2005, 02:13 AM   #13
Jamster
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: Debian Sid, LFS
Posts: 4

Rep: Reputation: 0
Personally I don't think that running a firewall under Linux makes sense if all ports are closed/no 'net services are running, anyways.

If iptables gets run for the pure purpose of blocking all those closed ports, it actually just adds a new possibility of attack through exploitble code. Blocking closed ports is senseless

The only reason (aside of routing, logging, load balancing and other such things) for iptables under a port blocking aspect I see is in cases where you want

1. Only a certain group of IPs to access a specific daemon, or to exclude a group
2. Limit the amount of connections and/or rate
3. To block a daemon you don't want to have publically avaible, that just won't let you disable it's public port listening through the daemon's config itself. Always try checking the service's config if you want to restrict it to local usage, use iptables if the daemon offers no such options in the configuration.

Also, it's better to run the firewall on a seperate box, no matter the OS. If the box gets exploited and somebody gains root privileges, iptables won't help you on the same box as it can simply be tunred off.

To make a long story short:

On a home box, simply turn off all listening daemons and use no firewall.

On a box where you want local listening services, check their configuration. Most can be set to only listen on 127.0.0.1, also needing no firewall.

In case you need routing, net logging, ip restrictions or local daemons that just won't listen only locally, use iptables...if you can, on a seperate box.
 
Old 11-08-2005, 08:18 AM   #14
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
I don't think that running a firewall under Linux makes sense if all ports are closed

Isn't the reason for the firewall to close the ports?
 
Old 11-08-2005, 08:56 AM   #15
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally posted by 2damncommon

Isn't the reason for the firewall to close the ports?
Mmmhh if they are closed, then I see no reason for closing them
 
  


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
BSD Firewall vs Linux Firewall ? rootlinux Linux - Security 5 08-29-2007 07:38 AM
how to m$ win client+firewall to linux sshd and use linux to access the M$ computer c_mitulescu Linux - Networking 7 05-14-2004 12:56 PM
Linux As a Firewall shaundyc Linux - Security 8 05-07-2004 11:56 AM
A Firewall for linux marsques Linux - Security 7 01-08-2004 12:41 PM
Linux Firewall preguin1 Linux - Security 7 04-05-2001 04:14 AM

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

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