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-2005, 10:45 PM   #1
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
new windows virus


in light of yet another windows virus, i am hoping some of you
can shed some light on the level of security provided by my
home-net configuration.

I have a linux 2.4 (debian) system running as an internet gateway. I run stateful firewall (iptables) which does NAT for other machines behind 2nd NIC. Normally *unless i temporarily 'open' a port* the firewall basically drops all packets that do not match an 'established' connection. Everything is hardwired (no wireless) with static IPs, etc.

Is there any way that I can be vulnerable to worms, viruses, etc. on the home LAN?

Can i safely run windows machines behind this firewall?

Is there any difference between my configuration and say, a windows machine serving the same firewall purpose - ie. running a windows machine with internet connection sharing, plus a firewall such as provided by microsoft or perhaps sygate or other 3rd party?

I am confused regarding all the claims that linux is inherently more secure at the network layer.

Any advice appreciated!
danimal
 
Old 08-16-2005, 11:08 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
Is there any way that I can be vulnerable to worms, viruses, etc. on the home LAN?
Of couse. If you get one in your email or download one off the net yourself (eg. from a dodgy site) the firewall won't stop that.

Quote:
Can i safely run windows machines behind this firewall?
You can't run Windows safely anywhere
But yes you should be pretty safe.

Quote:
Is there any difference between my configuration and say, a windows machine serving the same firewall purpose - ie. running a windows machine with internet connection sharing, plus a firewall such as provided by microsoft or perhaps sygate or other 3rd party?
Not on the face of it no.

Quote:
I am confused regarding all the claims that linux is inherently more secure at the network layer.
Linux generally has fewer remote vulnerabilities, less services run as a priveleged user, there is more scope for locking down the machine with things like chroot and SELinux, Linux distros usually enable the firewall by default, Linux users don't run as root, Linux email clients don't execute attachments, etc. etc. However your Windows box serving the same purpose may do the job just as well and be just as secure if you set it up carefully and properly.

There is nothing magically more secure about having a Linux box do a particular task instead of a Windows box , after all security is a process, not a product. However you'll find a lot of people (incl. me) feel that Linux is easier to secure and more reliably secure and offers much more scope to enable you to lock it down.

Quote:
I have a linux 2.4 (debian) system running as an internet gateway. I run stateful firewall (iptables) which does NAT for other machines behind 2nd NIC. Normally *unless i temporarily 'open' a port* the firewall basically drops all packets that do not match an 'established' connection. Everything is hardwired (no wireless) with static IPs, etc.
This sounds like an excellent setup, as long as you're keeping up with updates for that Debian box. Keep going with it.

Last edited by tkedwards; 08-16-2005 at 11:09 PM.
 
Old 08-16-2005, 11:24 PM   #3
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Original Poster
Rep: Reputation: 36
more...

Thanks so much, tk...

Regarding updates, i run apt-update/upgrade often, and have the following line in my
sources.list

deb http://security.debian.org stable/updates main contrib non-free

Is that sufficient for keeping updated?


Lastly, I am interested in any package that might help to detect possible infections, trojans, etc., by logging suspicious LAN-side requests out to the internet. I have learned that when surfing the net, many-many-many connections are 'established' over time and i suppose if they are initiated from 192.168.etc.etc. then the firewall is not bothered. Is there any way to detect connection requests that are made (for example) by a rogue program, and log them?

..Or any other generic package that could be run to further harden the box?

Thx again!
 
Old 08-16-2005, 11:52 PM   #4
Gato Azul
Member
 
Registered: Sep 2003
Location: /dev/null
Distribution: CentOS, Ubuntu
Posts: 128

Rep: Reputation: 16
Quote:
..Or any other generic package that could be run to further harden the box?
Three great security tools that I personally use and recommend for increasing security on a Linux box are chkrootkit, Rootkit Hunter, and Bastille. The first two are excellent utilities to check for rootkits on Linux and Unix systems. Bastille is a wonderful little utility that aids in locking down a Linux or Unix system as well as providing some newly integrated vulnerability-assessment tools.

Two good system integrity tools are Tripwire and AIDE. You can do various things with both of those tools, but I've used them to monitor file changes on my server. My machine will email me if/when certain critical files are touched/moved/modified/etc.

If you're concerned about viruses, Clam AntiVirus is a great virus scanner. Although I'm not too concerned about contracting a virus on my Linux machine, I do use Clam to scan files/email that pass through my Linux server to Windows machines to ensure that I'm not part of the virus distribution chain. There are nice graphical front-ends to Clam such as KlamAV if you prefer the QT/KDE look, or if you're comfortable with the command line, plain old ClamAV is great for that too. You can set up cron jobs to scan your machine, integrate it with other programs such as email daemons, etc.

Hope that helps!

Last edited by Gato Azul; 08-16-2005 at 11:54 PM.
 
Old 08-16-2005, 11:54 PM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
deb http://security.debian.org stable/updates main contrib non-free

Is that sufficient for keeping updated?
I don't know much about debian but that looks correct.

Quote:
Lastly, I am interested in any package that might help to detect possible infections, trojans, etc., by logging suspicious LAN-side requests out to the internet. I have learned that when surfing the net, many-many-many connections are 'established' over time and i suppose if they are initiated from 192.168.etc.etc. then the firewall is not bothered. Is there any way to detect connection requests that are made (for example) by a rogue program, and log them?
Programs like chkrootkit and rkhunter will look for rootkits (http://en.wikipedia.org/wiki/Rootkit), you can't do any harm setting them to run every night.
AIDE is an example of a host-based intrusion detection system and Snort a network based IDS. Network based IDSes are designed to log any suspicious traffic. However generally IDSes are a bit overkill for a home user - they can be complex and time consuming.
 
Old 08-17-2005, 12:05 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
The line you have for your sources.list is fine if you are running Sarge.

You might want to check out Securing Debian Manual

You could always run a mail server on your Debian box, and scan for viruses with ClamAV or F-Prot.
 
Old 08-17-2005, 12:53 AM   #7
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Also, the set of harden packages for Debian are quite useful (at the very least, they ensure that known vulnerable debs are not installed)...
Code:
apt-get update
apt-get install harden*
 
Old 08-17-2005, 11:38 AM   #8
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Original Poster
Rep: Reputation: 36
Thanks

thx everyone..!
 
Old 08-20-2005, 01:04 PM   #9
bambeklis
Member
 
Registered: Aug 2005
Posts: 58

Rep: Reputation: 15
this is best linux forum!
 
  


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
Is Windows a Virus? alagenchev General 5 04-26-2005 02:07 PM
Is Windows a Virus? alagenchev Slackware 9 04-26-2005 02:53 AM
are there any tools for scaning windows partition with windows virus... hkl8324 Linux - Newbie 1 08-04-2004 02:23 PM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 02:35 PM
Is windows a virus? aizkorri General 1 05-03-2002 08:58 PM

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

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