LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-16-2003, 07:25 AM   #1
matador
Member
 
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107

Rep: Reputation: 15
firewall newbie question


I've used Linux (MDK 9.1 at the moment) for quite a while alongside with MS. The more I use it the more I start liking the progs. I have read a lot of info about how to install firewall, iptables etc but what I'm asking myself now is how important a firewall actually is. I'm online always, file sharing (k-lite, xmule, ftp-server, ssh-server), which also exposes me to viruses. So I guess I'm asking for your opinion or info on the need of a firewall and virus protection (could spread it to friends using other more vulnerable systems).

/thanks
 
Old 08-16-2003, 08:01 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
FIrewalls, are important. if your connected for long periods even more so.

Their fairly easy to set up. I use KDE and theirs a good program called Guarddog that a GUI to itables.
 
Old 08-16-2003, 10:09 AM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well I prefer writing my netfilter code (= firewall) myself ... I do not want to trust a GUI :-)
 
Old 08-16-2003, 10:59 AM   #4
matador
Member
 
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107

Original Poster
Rep: Reputation: 15
Well it seems as if a firewall is important. I'm not sure I have the time at the moment (studies...) to build up a netfilter code at the momnent (I would like to do it though). Plus I'm a bit scared of locking my computer, getting more probs than benefits (not saying a GUI wouldn't do that aswell).

So I guess I'm gonna go for a GUI. I've heard a lot about Guarddog and the documentation seems rather good, but does it work on windowmaker or just on KDE? I've heard about some others such as smoothwall and Astaro but they seem to take over the computer changing it into a router.

And what about viruses?
 
Old 08-16-2003, 11:07 AM   #5
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Hmmm Guarddog would require some of the KDE libs for display.

It doesn't take over as its a GUI for setting the computers filters etc. Its pretty hot on the protocols so it locks lots of things down. Took me ages to get the real player working

As for anti-virus programs, I don't have any. There are a few about but Linux doesn't suffer that much from them. I been running Linux about 6 years and never seen a virus.

I've had about seven in WIndows.
 
Old 08-16-2003, 11:25 AM   #6
matador
Member
 
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107

Original Poster
Rep: Reputation: 15
I'm using windowmaker but I have KDE installed on the puter. So it should work, or?

I guess the only reason to have a virusprogram is to recognize if a file is infected so that I don't spread it to a MS user. On the other hand they can have it!
 
Old 08-16-2003, 12:36 PM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
If you want to go for antivirus give clamav and amavisd-new a look. They can be easily integrated with Postfix for instance.
 
Old 08-16-2003, 12:47 PM   #8
matador
Member
 
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107

Original Poster
Rep: Reputation: 15
I'll check them out. It feels better having one. Thanks!
 
Old 08-16-2003, 01:27 PM   #9
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
If you've got KDE installed then Guarddog should work fine.
 
Old 08-16-2003, 01:36 PM   #10
matador
Member
 
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107

Original Poster
Rep: Reputation: 15
Cool! Then I got some installations ahead of me! But there's some serious partying and bar-work attending to first. Remembering what happened last time I did repartitioning/installation at 4am after partying; perhaps I should wait untill tomorrow...
 
Old 08-16-2003, 08:19 PM   #11
slapNUT
Member
 
Registered: Jun 2001
Location: Recycle Bin
Distribution: Linux & Everything else on VirtualBox
Posts: 144

Rep: Reputation: 15
Since you are using Mandrake just start the mandrake control panel click on security then on firewall. If the shorewall packages are not installed it will install them. You could even do it drunk!
 
Old 08-17-2003, 06:35 AM   #12
matador
Member
 
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107

Original Poster
Rep: Reputation: 15
Wow, I'm surprised how easy it was configuring guarddog. Rpm -ivh, start, click, click, done? Forgot the DNS access, click, et voilą!

I guess it's too late switching to smoothwall now. But I'll try it in a few weeks when the Mandrake 9.2 is released. Is it somewhat like guarddog, i.e. easy but still ~safe?
 
Old 08-17-2003, 02:03 PM   #13
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Rep: Reputation: 30
just for the sake of encouraging use of iptables, i suggest you use the following for your base iptables:

NOTE: substitute your network interface (ppp0 if you use PPPOE) for eth0

iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

iptables -A INPUT -p ALL -i lo -j ACCEPT

iptables -A INPUT -p ALL -i eth0 -m state --state ESTABLISHED, RELATED -j ACCEPT

iptables -A INPUT -p TCP -i eth0 -s 0/0 --destination-port 22 -j ACCEPT

iptables -A OUTPUT -p ALL -s 127.0.0.1 -j ACCEPT
iptables -A OUTPUT -p ALL -o eth0 -j ACCEPT

this just makes sure that nobody makes new connections to your computer via the state-matching rule. it's a really basic firewall that doesn't watch for certain funny packets and i'm sure the guarddog firewall is better out of the box, but a real understanding of iptables is a very useful tool to possess.

all you need to do is put this into a script where mandrake 9.1 will load it from on boot (i don't know where it is...).

gl,
y-p
 
Old 08-18-2003, 10:46 AM   #14
matador
Member
 
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107

Original Poster
Rep: Reputation: 15
Thanks man!

I definetely want to learn how to set up an iptables firewall. It's just my *blody* finals right now so I guess guarddog does the job until I have time to read all the howtos.
 
  


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
newbie ftp and firewall/ip question NonSumPisces Linux - Networking 6 07-30-2004 04:13 PM
home firewall for a newbie tgardner Linux - Hardware 1 01-17-2004 07:20 PM
Newbie needs help with IPtables and firewall AWyant Linux - Networking 1 09-13-2003 03:27 PM
firewall + samba, ok? (newbie) linowes Linux - Security 1 11-16-2002 12:17 PM
Newbie firewall question menhilmor Linux - Security 9 07-18-2002 02:25 PM

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

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