LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Do I need a firewall and virus protection for Ubuntu? (https://www.linuxquestions.org/questions/linux-newbie-8/do-i-need-a-firewall-and-virus-protection-for-ubuntu-722497/)

adhinsley 04-29-2009 10:13 AM

Do I need a firewall and virus protection for Ubuntu?
 
I am really new to Ubuntu and wonder if it needs protection like XP does? In XP I have Kaspersky Internet Security, is there an equivalent in the world of Ubuntu?

linus72 04-29-2009 10:15 AM

you shouldn't need either firewall or antivirus in Ubuntu, but if unsure I think Ubuntu has a firewall app called "ufw", look in synaptic...

adhinsley 04-29-2009 10:18 AM

Synaptic?
 
Thanks but I am REALLY new!! What is synaptic?:o

j1alu 04-29-2009 10:43 AM

Quote:

Originally Posted by adhinsley (Post 3524799)
Thanks but I am REALLY new!! What is synaptic?:o

its the graphical package-manager to install software from the repositories.
i think you may open it from the panel>system>administration.
then you`ll have to enter your root password (in debian, in ubuntu it might be your users password). just have a look at it, it might take a bit to get used to it, but its quite simple/self-explaining.
i haven`t got a firewall and no antivirus. seems to work fine.
(i think one graphical firewall is called watchdog or guarddog,
just enter firewall in the synaptic-search entry and you should find some)
greetings

cloud9repo 04-29-2009 10:46 AM

Quote:

Originally Posted by adhinsley (Post 3524792)
I am really new to Ubuntu and wonder if it needs protection like XP does? In XP I have Kaspersky Internet Security, is there an equivalent in the world of Ubuntu?

In the Upper Left, select "System...Administration...Synaptic Package Manager"

Then, within synaptic, select "Reload..." on the far left.

The two programs I use are:
Firestarter which is a firewall
clamav which is anti virus.

Also, selecting within synaptic "Mark all upgrades..." will get you the latest security fixes.

dandart 04-29-2009 10:54 AM

Ubuntu needs a firewall, if only to keep intruders from trying to hack you. Though it has less exploits, there are still some that crop up now and then.

ufw should handle your firewall problems out of the box. It is set up to block all connections from the outside and allow all connections from the inside by default. If you want something different and configurable, install firestarter, it is easy and intuitive.

As for anti virus, Linux doesn't get viruses :-P It's far too secure by default. But Linux gets "rootkits". If you were to download some dodgy piece of software off a dodgy site you might get one but now software is located in your repositories which are automatically checked, that's what Add/Remove and Synaptic are for, so you shouldn't need to download stuff off other places. There are rootkit checkers around but are quite difficult to use, but a firewall should be just fine if you just install out of the repositories.

If you are sharing your connection with a computer with a proprietary system (ie windows or osx) then you might want to have an antivirus to stop the viruses getting them.

Hope that helps
Cheers
Dan

repo 04-29-2009 11:26 AM

Quote:

you shouldn't need either firewall or antivirus in Ubuntu
Quote:

As for anti virus, Linux doesnn't get viruses :-P
There are viruses for Linux, and people who say they don't exist are just stupid, and ignoring reality.
The more popular linux will get, the more the chance viruses will apear.
It is recommended and common sense to use a firewall, rootkit checkers, and a virusscanner, and to secure your system by disabling unneeded services.

{BBI}Nexus{BBI} 04-29-2009 12:06 PM

For clamav also install clamtk it's a graphical frontend for clamav.

joeseph0404 04-29-2009 08:22 PM

Ideally, programmers who write malicious software aim to have the biggest target audience possible. This is why most viruses are written for windows - simply because more people use it than any other single operating system in the world. There are viruses for linux (just like windows and macintosh) but there are generally much fewer than other distributions. The viruses are said to be more challenging to get because they usually cannot download and install themselves the same way they can in windows, so they must use other strategies.

I actually don't use any firewall software. When I forward ports through my router, I only enable two or three ports to be open. Also, my router (like most routers) will not respond to a WAN ping. This combined with the fact that the su program purposely takes several seconds to reject a password makes my security relatively stable.

I have never used any kind of rootkit checkers/virusscanners to remove malware (although I have used them to check for it) and I have never been affected by any kind of malicious software. One of my current machines have been running the same version of Ubuntu for three years.

I hope my personal experiences help you in your decisions.

OrangeCrate 04-29-2009 08:42 PM

Quote:

Originally Posted by adhinsley (Post 3524792)
I am really new to Ubuntu and wonder if it needs protection like XP does? In XP I have Kaspersky Internet Security, is there an equivalent in the world of Ubuntu?

It seems that I need to make two posts to be able to give you a link. Here's the first one, look for my comment and link in the next post...

OrangeCrate 04-29-2009 08:44 PM

This is a great tutorial on Ubuntu for new users. It is written by asiyu, one of the Moderators on the Ubuntu forums.

Here is a discussion on security to get you started...

http://psychocats.net/ubuntu/security

j1alu 04-29-2009 09:06 PM

its from the link added by OrangeCrate, but i`ve read the same in different essays.
Quote:

By default, Ubuntu ships with no open ports on public interfaces. In other words, a "port scan" would show all closed ports, nothing open. As a result, putting up a firewall would provide no more security than not putting one up. Remember that open ports provide services that hackers can connect to, and only if they can connect to these services can they be potentially abused and exploited.
so might one explain to me why one does need a firewall and why that isn`t being adviced in the magazines, wikis and books i read?(as i don`t know i write "i`m fine" instead of "you don`t need one")
thanks in advance

OrangeCrate 04-29-2009 09:37 PM

The need for a firewall and virus protection has been, and continues to be, a hotly discussed topic in forums. There are strong opinions both ways. Here's another highly regarded source of information on Ubuntu security, that can help a person to make an informed decision:

http://ubuntuforums.org/showthread.php?t=510812

(I personally don't make a recommendation to users either way. It's totally up to them, what they want to do...)

j1alu 04-29-2009 09:49 PM

yep, but on what i do i think:
as long as i don`t know how a firewall works/what to do it doesn`t make it better if i tweak around with it.
i ran bout a year without antivirus, then installed one: no viruses found; and i removed it again (as "each addtitional software is a security risk, especially one which is allowed to scan the complete fs").
thanks for the following link and greetings

chrism01 04-29-2009 10:45 PM

Basically, most firewalls eg iptables settings focus on incoming connections.
If you know all the services you've got listening and you don't mind/care who connects or how often etc, then you don't need a firewall.
If you do care who connects, you can use a firewall and /etc/hosts.allow, /etc/hosts.deny to limit that.
You can also use fail2ban to limit how often.
It can also act as a failsafe to protect you if you accidentally start a new service listening. Nobody will be allowed to connect if you have a tight firewall, until you open that port.
Similarly for outbound connections and relaying (port fwding).

j1alu 04-29-2009 10:50 PM

Quote:

If you know all the services you've got listening and you don't mind/care who connects or how often etc, then you don't need a firewall.
thanks,
and how might i figure out which services i got listening? (as i understood per default there are none, well: ports).
i did an online scan: as i recall it gave me n/a.

widget 04-29-2009 11:06 PM

You should take a look at a number of sites before doing anything. Find out what fits YOUR situation. ubuntuforums.org, ubuntuguide.org and ubuntugeek.com are good sources of information besides the wonderful fount of knowledge that you tap into here.

My opinion is that you really don't need to worry too much. Don't be pushing buttons to download crap from places you don't know. Stick to the repositories. If you are on 8.10 (Intrepid) or 9.04 (Jaunty) you have clamav installed along with clamav-liveclam which keeps it up to date.

This kind of thing has been recommended for a long time and it is mainly to make certain that you don't transfer a virus (through e-mail) to some one using Outlook without a condom. I don't care if they get a virus or not. If they do it is because the origanal senders ISP missed it, my ISP missed it when delivering it to me, my ISP missed it when I sent it, the victums ISP missed it when they delivered it.

Other security threats are more likely in Linux but you have time to figure out which ones YOU need to worry about. Welcome to Gnu/Linux and Ubuntu where you have choice. Unfortunately you need to do some thinking too but I am getting old. It is good for me.

widget 04-29-2009 11:09 PM

Another thing to watch out for is a lot of online scans are scams to get you to buy some crap that doesn't work anyway. Make sure you know the real skinny on the buggers before you use them. Windows makes a lot of crooks a lot of money.

jschiwal 04-30-2009 04:48 AM

I think that what Linus72 meant by "you don't need a firewall" is that Ubuntu has a firewall already. You don't need to get one. The Linux firewall is the netfilter which is a part of the kernel. There are wrapper programs that use the iptables command to add rules to the kernels firewall.

A type of malware you need to defend against is lkm root kits. You can run rkhunter and chkrootkit to detect them. Look in your packaged manager for a virus scanner like clam AV. It can protect you from having a windows virus in a samba share. It may also do things like check email or web server configurations for problems.

You system may perform security checks nightly and make a report. If you forward the messages for root to your account you can read them with your normal email.

The term `virus' IMHO is passée. While in linux it is more difficult to become infected, to gain root access, and to spread, there are no guarantees. If you have an SSH service running with a week password, root logins and use password authentication, you may find yourself being owned. If you run a web server and misconfigure it or the web pages are susceptible to attack (e.g. not parametrizing MySQL), you may find you have been hacked. If you don't apply security updates, or are running a very old distro like RH 9, you could be in trouble as well.

cloud9repo 04-30-2009 11:07 AM

Quote:

Originally Posted by jschiwal (Post 3525624)
I think that what Linus72 meant by "you don't need a firewall" is that Ubuntu has a firewall already. You don't need to get one. The Linux firewall is the netfilter which is a part of the kernel. There are wrapper programs that use the iptables command to add rules to the kernels firewall.

A type of malware you need to defend against is lkm root kits. You can run rkhunter and chkrootkit to detect them. Look in your packaged manager for a virus scanner like clam AV. It can protect you from having a windows virus in a samba share. It may also do things like check email or web server configurations for problems.

Thanks for the heads up. I run a firewall and AV, but didn't know about the rootkit checkers. While installing, I also found 'tripwire', which is an integrity checker.

Was curious were I could get more info about some warnings. Most were understandable, but 2 jumped out:

[11:00:31] Checking /dev for suspicious file types [ Warning ]
[11:00:31] Warning: Suspicious file types found in /dev:
[11:00:31] /dev/shm/pulse-shm-1148848734: data
[11:00:31] /dev/shm/pulse-shm-3757811042: data

Should I start a thread in another forum, or are these false detects?

chrism01 04-30-2009 08:16 PM

Well /dev/shm = shared-mem and pulse is an audio tool on Linux. Those are probably not an issue, but you can always check the src code for pulse if you really care I think?
I'd start with google before posting a qn though.

jschiwal 05-01-2009 12:36 AM

I have the same files:
Code:

ls -l /dev/shm
total 41524
-r-------- 1 jschiwal jschiwal 67108888 May  1 00:15 pulse-shm-1042367663
-r-------- 1 jschiwal jschiwal 67108904 May  1 00:14 pulse-shm-4225754423
-r-------- 1 jschiwal jschiwal 67108904 Apr 30 13:51 pulse-shm-778702401

AFAIK, it is used for communicating between audio applications.

cloud9repo 05-01-2009 06:02 AM

Quote:

Originally Posted by chrism01 (Post 3526298)
Well /dev/shm = shared-mem and pulse is an audio tool on Linux. Those are probably not an issue, but you can always check the src code for pulse if you really care I think?
I'd start with google before posting a qn though.

Yeah, with google it's sometimes hit or miss. In this case, miss.

The poster after you gave me the answer. Thanks for the help.

cloud9repo 05-01-2009 06:04 AM

Quote:

Originally Posted by jschiwal (Post 3526428)
I have the same files:
Code:

ls -l /dev/shm
total 41524
-r-------- 1 jschiwal jschiwal 67108888 May  1 00:15 pulse-shm-1042367663
-r-------- 1 jschiwal jschiwal 67108904 May  1 00:14 pulse-shm-4225754423
-r-------- 1 jschiwal jschiwal 67108904 Apr 30 13:51 pulse-shm-778702401

AFAIK, it is used for communicating between audio applications.

This makes sense, as sometimes I've noted a shadow server will crop up when I listen to streaming audio. Mike make overs. This is common, from what I know, as everyone with a shower voice/sense of humor, likes to interject at times.

Thanks.

widget 05-04-2009 08:12 PM

Use only apps from Ubuntu repos. Do not brainlessly click on shit that comes up on your browser. Linux will never be a good target because of file permissions. This is why Macs have less than there share of virus' in comparision to their market share. They are unix based too.

this does not mean that you should ignore the possibility of a threat. this just means that you have the oppertunity to do some searches of Ubuntu threat levels and decide what is best for YOUR situation. This is linux. It is your call.

parneet384 09-29-2009 01:45 AM

Quote:

Originally Posted by adhinsley (Post 3524792)
I am really new to Ubuntu and wonder if it needs protection like XP does? In XP I have Kaspersky Internet Security, is there an equivalent in the world of Ubuntu?

Yes of course there's lot of equivalent antivirus software avialable like Pc security Advsior,avast antivirus,norton,etc. but i am using Lighter antivirus Pc security Advsior from last two months.

Fred Caro 09-29-2009 02:31 AM

linux security
 
You could take the opinion that that is something that (again) Windows gets or protect yourself.Even a raid array will transfer a virus stroke intruder will transfer its self so a firewall is essential. Antivirus is good especially if you swap stuff with friends who use Windows.

Fred.

////// 09-29-2009 07:00 AM

Quote:

Originally Posted by Fred Caro (Post 3700263)
Antivirus is good especially if you swap stuff with friends who use Windows.

Fred.

exatly, if you dual boot antivirus is a very good idea. (I use bit-defender scanner for unices.)

And really, firewall is a must have application.

widget 10-13-2009 03:21 AM

This is probably not a good thing to say but it is true.

I do take security seriously, I am careful, there is a firewall, clam is kept up to date.

None of this is done to protect Win Jerry lewis Pro users from virus infestation. They chose to use that OS. It is not my responsibility to protect them from their OS.

Frankly I don't care if they all crash and burn.

Now you are free to flame the tarnation out of me.

jmc1987 10-13-2009 03:47 AM

I agree virus scan you don't need but it is a bonus. There is still a possibility you might be the 1 lucky man to get a virus =).

widget 10-13-2009 09:40 AM

+1

I ran MS starting with MSdos (with DosShell -woo hoo). Ran 98 for 10 years until we bought the new box (with Vista - Thank you MS for getting me on Linux). Never had a virus and only one piece of malware (deep mining for info deal) that only lasted 15 minutes.

I am not real worried about getting crap on my Ubuntu OS because we use the same habits that we did with 98. I think if that security hole was as safe as it was, Ubuntu is pretty much solid.

People get malware on Win from being stupid (mainly). The biggest threat to your security is the person on the keyboard.

{BBI}Nexus{BBI} 10-13-2009 10:56 AM

Quote:

Originally Posted by widget (Post 3717365)
They chose to use that OS. It is not my responsibility to protect them from their OS.

Frankly I don't care if they all crash and burn.

Agreed. Why should I run software I don't need because your OS of choice in vulnerable!


All times are GMT -5. The time now is 02:26 PM.