LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-25-2008, 03:23 AM   #1
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Rep: Reputation: 40
Network security for linux or slackware


Hi,

I have read news that it seems cyber crimes are hot topics.

I will like to ask using linux, how safe is the security?

I have read that those key loggers, worms or trojans are windows specific.

I will like to ask if whether the above malicious codes which affect the windows system, will it affect linux systems?


Thanks
 
Old 11-25-2008, 05:03 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
All those viruses, worms, etc, are for Windows systems. Linux is much more secure. For Slackware, you should turn off services that you don't need, especially all those services that are for servers, if you are not running a server. To disable services, run pkgtool as root, choose the option to start /stop services, and turn off any you don't need.

You can scan your system for open ports here:
http://www.grc.com/default.htm
Click on "shields up", click on "proceed" and run the test "scan all service ports". Slackware should not have any open ports in a default install.
Also, see the section on security in the Slackbook:
http://slackbook.org/html/security.html
If you want a software firewall, try the slackbuild for Guarddog:
http://slackbuilds.org/repository/12...work/guarddog/
If you are behind a router you don't need a software firewall.

Last edited by tommcd; 11-25-2008 at 05:05 AM.
 
Old 11-25-2008, 06:02 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

I would like to add that if you are behind a router/modem that to make sure the firewall is enabled for the device(s)
 
Old 11-25-2008, 07:12 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by tommcd View Post
If you are behind a router you don't need a software firewall.
That's debatable. The firewalls that come with many routers are typically poorly configured and cannot be easily configured properly. But, if you have a good router, then indeed it would be better to configure that one properly.
 
Old 11-25-2008, 07:17 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by vitalstrike82 View Post
Hi,

I have read news that it seems cyber crimes are hot topics.
Where do you get your news, just curious
 
Old 11-25-2008, 08:30 AM   #6
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by H_TeXMeX_H View Post
That's debatable. The firewalls that come with many routers are typically poorly configured and cannot be easily configured properly. But, if you have a good router, then indeed it would be better to configure that one properly.
If all your ports are reported as "stealth" by the port scan at "Shields Up", then isn't that good enough? Is there anything more that you would recommend?

I always thought that NAT in hardware firewalls and routers was all you needed to block unauthorized connections to your system or home network.

Last edited by tommcd; 11-25-2008 at 08:32 AM.
 
Old 11-25-2008, 09:20 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Your network security level is defined by its weakest spot.
Try to search if there is any exploit associated with your modem/router, if it needs software update...
(don't send router password in clear on untrusted network )
Then be careful about any open port, for example if you use NAT to forward port 22 from internet to one machine of your lan, I believe you will experience ssh login attempts from internet, NAT has no protective purpose, it's just routing
 
Old 11-25-2008, 12:12 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by keefaz View Post
Your network security level is defined by its weakest spot.
Try to search if there is any exploit associated with your modem/router, if it needs software update...
That's a good point, most routers that I've seen, with the exception of one (which ran Window$ CE), run Linux. Now the question is, how up-to-date is that system ? Exploits do exist for many kernel versions, so it's likely one exists for the kernel your router is running. When was the last time you updated your router ?

As for stealthed ports, these can actually be scanned:
http://www.icir.org/vern/papers/norm...tml/node8.html

From wiki:
Quote:
The result of a scan on a port is usually generalized into one of three categories:

* Open or Accepted: The host sent a reply indicating that a service is listening on the port.
* Closed or Denied or Not Listening: The host sent a reply indicating that connections will be denied to the port.
* Filtered, Dropped or Blocked: There was no reply from the host.

Open ports present two vulnerabilities of which administrators must be wary:

1. Security and stability concerns associated with the program responsible for delivering the service.
2. Security and stability concerns associated with the operating system that is running on the host.

Closed ports only present the latter of the two vulnerabilities that open ports do. Blocked ports do not present any reasonable vulnerabilities. Of course, there is the possibility that there aren't any known vulnerabilities in either the software or operating system at this given time.
http://en.wikipedia.org/wiki/Port_scan
 
Old 11-26-2008, 12:36 AM   #9
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by keefaz View Post
Where do you get your news, just curious

Oh i read it from my local newspaper. It seems that for the past 2 weeks , the newspaper has reports on cyber thefts
 
Old 11-26-2008, 12:40 AM   #10
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
Few years ago, i'm using norton, then avg but still prone to virus which makes me switch to linux.

How about anti virus for linux? any to recommend?

thanks
 
Old 11-26-2008, 12:48 AM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You don't really need antivirus for Linux, it's mostly just to keep Window$ machines on the network safe from viruses that Linux may be carrying but that cannot take effect until they reach a Window$ environment. If you want one, try clamav, I have it installed, it's very fast and up-to-date.
 
Old 11-26-2008, 08:23 AM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by vitalstrike82 View Post
Few years ago, i'm using norton, then avg but still prone to virus which makes me switch to linux.

How about anti virus for linux? any to recommend?

thanks
Good security habits are still necessary even with Linux. It's just that you should not experience the problems normal to a M$ Win machine or environment. Especially the virus/Trojan/worms from that environment. As 'H' stated you will not need the overall watch except for M$ that you may service with your Linux based system if it does service the network or LAN needs.

I too recommend 'clamav', a nice piece of software. I would also recommend that you install 'clamwin' on the M$ based machines.

If you are going to create a server for your LAN then there other measures that you will address.

This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 11-27-2008, 02:17 AM   #13
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
thanks for the info
 
Old 12-01-2008, 12:12 PM   #14
jdvail
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware
Posts: 8

Rep: Reputation: 1
Never saw a reference in this thread to an important security rule: Don't log in as root unless you need to, and definitely don't use your browser as root (same applies to any accounts with root-like powers)

Also, I'd add another vote to the clamav recommendation, I've used it for a number of years with no problems. As someone else mentioned, the vast majority of malware is aimed at windows, but if you have file-share or an FTP server or anything like that, you could be used as a distribution point. I found the on-access scanner add-on for clamav not to be worth the performance hit I took, but I still run a scheduled scan for reasons I covered above. Usually I scan the entire box once a week and "public" areas daily.

jvail

Last edited by jdvail; 12-01-2008 at 12:14 PM.
 
Old 12-01-2008, 01:36 PM   #15
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I run a Linksys WRT54GL router with DD-WRT firmware. I run the iptables firewall on each box in my LAN. I figure the extra layer is just one more obstacle to any crackers. For people running a LAN with multiple users, a firewall at each box also discourages those users from playing cracker.

Disabling unneeded services is the fastest way to close a port.

Quote:
If all your ports are reported as "stealth" by the port scan at "Shields Up", then isn't that good enough? Is there anything more that you would recommend?
If Shields Up reports the ports are closed but not stealth, that is good too. There has been an ongoing debate for years whether Closed or Stealth is better. A cracker knows a box exists with Closed ports but also immediately knows everything is closed. More than likely the cracker moves on to the next potential victim.
 
  


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
LXer: Network Security Toolkit distribution aids network security administrators LXer Syndicated Linux News 0 07-23-2008 11:02 PM
Newbee to network security on linux asks me-$-on Linux - Security 9 06-16-2008 07:46 AM
Linux security modules & Slackware rkelsen Slackware 2 07-01-2007 10:34 PM
Slackware Linux Security Advisories aikempshall Slackware 3 03-14-2005 02:17 PM
linux network security aparna Linux - Security 3 03-03-2002 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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