View Full Version : [ubuntu] Securing Ubuntu questions
Alden born
June 1st, 2009, 11:17 PM
OK i have a system that i want to put some extra protection on it. I know in general Ubuntu is secure. This particular machine has windows and Ubuntu computers that connect to it. (FYI)
From what i have read online i was thinking about the following setup. And please tell me your thoughts on each section. Or if you have something to suggest let me know.
Firewall -> Fire starter
Anti virus -> AVG
Root kit detection -> chkrootkit
Thanks
HermanAB
June 2nd, 2009, 12:16 AM
Hmm...
chrootkit - useless, waste of time.
AVG - good for scanning Windows files, so run it on the Windows VM. Alternatively use ClamWin.
Firestarter - Deprecated, use UFW instead.
Do activate Window Firewall on the Windows VM.
lovinglinux
June 2nd, 2009, 12:56 AM
chrootkit - I use rkhunter, which also check if important files have been changed
AVG - doesn't remove or clean infected files and as far as I know, it doesn't have a GUI. Use BitDefender (https://help.ubuntu.com/community/BitDefender) instead, which scans fast, has a nice gui, has integration with Nautilus and a nice drop-box.
Firestarter - Deprecated, use UFW instead and Gufw for graphical interface. UFW is installed by default. You can install the gui by searching for "Firewall Configuration" in the "Add/Remove manager".
Some things you should know:
Anti-virus is useful if you have Windows on your network, because they don't scan Linux virus, since there aren't any in the wild.
Firestarter and UFW/GUFW are just firewall managers, which means they allow you to create rules for iptables (the real firewall) without knowing the commands. You don't need them if you know the iptables commands.
Iptables are installed by default and activated at boot, but they allow all traffic by default. Since Ubuntu doesn't come with any services running by default, then you don't need the firewall. If you install services, then you might want to use a firewall to restrict access to the open ports.
Most people coming from Windows like Firestarter because of the connection monitoring feature, but you shouldn't be running it all the time, due to security risks of it's root requirements. Besides, you don't have to run it all the time to be protected, since iptables runs in the background.
UFW doesn't have a monitoring tool. You can use use another tool like IPTstate (http://ubuntuforums.org/showpost.php?p=7331295&postcount=8) for that
If you have a router with firewall capabilities, then you probably don't need to activate the firewall on Ubuntu.
If you use p2p programs, you might want to use moblock (http://moblock-deb.sourceforge.net/) or iplist (http://iplist.sourceforge.net/).
UKeywords: 649167 2009 june firestarter ufw gufw avg bitdefender rkhunter iptables firewall
Alden born
June 2nd, 2009, 01:20 AM
OK thanks i will take that into consideration?
Another question the computer I'm using is mainly just to store data, music and download torrents. Do you think i need to change anything with the firewall? What do you recommend?
lovinglinux
June 2nd, 2009, 01:32 AM
OK thanks i will take that into consideration?
Another question the computer I'm using is mainly just to store data, music and download torrents. Do you think i need to change anything with the firewall? What do you recommend?
Deny all incoming traffic and allow only the ports you need for torrent and for connecting to the file server. If you access it remotely only from your LAN, then you might also want to restrict access to the internal IPs.
You might like Deluge for torrents, since you can connect remotely with terminal, webui and gtk interfaces.
Alden born
June 2nd, 2009, 01:37 AM
Thanks again ill check Deluge out.
Right now i use transmission it has always felt like it was lacking in features.
lovinglinux
June 2nd, 2009, 02:28 AM
Thanks again ill check Deluge out.
Right now i use transmission it has always felt like it was lacking in features.
I also think Transmission lacks features. Deluge is much more complete, but it is easy to configure.
Alden born
June 2nd, 2009, 11:09 AM
Hmm...
chrootkit - useless, waste of time.
AVG - good for scanning Windows files, so run it on the Windows VM. Alternatively use ClamWin.
Firestarter - Deprecated, use UFW instead.
Do activate Window Firewall on the Windows VM.
I'm not talking about a windows VM. I talking about other windows machines on my network.
Alden born
June 2nd, 2009, 11:17 AM
chrootkit - I use rkhunter, which also check if important files have been changed
AVG - doesn't remove or clean infected files and as far as I know, it doesn't have a GUI. Use BitDefender (https://help.ubuntu.com/community/BitDefender) instead, which scans fast, has a nice gui, has integration with Nautilus and a nice drop-box.
Firestarter - Deprecated, use UFW instead and Gufw for graphical interface. UFW is installed by default. You can install the gui by searching for "Firewall Configuration" in the "Add/Remove manager".
Some things you should know:
Anti-virus is useful if you have Windows on your network, because they don't scan Linux virus, since there aren't any in the wild.
Firestarter and UFW/GUFW are just firewall managers, which means they allow you to create rules for iptables (the real firewall) without knowing the commands. You don't need them if you know the iptables commands.
Iptables are installed by default and activated at boot, but they allow all traffic by default. Since Ubuntu doesn't come with any services running by default, then you don't need the firewall. If you install services, then you might want to use a firewall to restrict access to the open ports.
Most people coming from Windows like Firestarter because of the connection monitoring feature, but you shouldn't be running it all the time, due to security risks of it's root requirements. Besides, you don't have to run it all the time to be protected, since iptables runs in the background.
UFW doesn't have a monitoring tool. You can use use another tool like IPTstate (http://ubuntuforums.org/showpost.php?p=7331295&postcount=8) for that
If you have a router with firewall capabilities, then you probably don't need to activate the firewall on Ubuntu.
If you use p2p programs, you might want to use moblock (http://moblock-deb.sourceforge.net/) or iplist (http://iplist.sourceforge.net/).
UKeywords: 649167 firestarter ufw gufw avg bitdefender rkhunter iptables firewall june 2009
What exactly do you mean by services? And i also thought that Ubuntu ships with no open ports. Does transmission count as a service?
You where right about avg and clamAV does the same as well. Also is bit defender free it looks like you have to pay for it?
thanks again.
lovinglinux
June 2nd, 2009, 11:52 AM
What exactly do you mean by services?
Services are programs that listen to ports for remote connections requests, like a web server or a torrent client. If you don't have services running, then all ports are essentially closed and you don't need a firewall. Other computers might reach you through your IP, but then won't be able to do anything, because there aren't any programs accepting connections on any port.
and do you know if ClamAV removes viruses?
I think so, but my experience with Clam was really short. I didn't like it.
Also i bitdefender free i look like you have to pay for it?
It's free for personal use. You have to request a free registration key from their web site.
And i also thought that Ubuntu ships with no open ports
Yes, you are correct. Ubuntu comes with no listening services, so all ports are closed by default.
Alden born
June 5th, 2009, 11:33 PM
Hey one more question.
Does Bitdefender (Linux Version) remove the virus once it finds them?
lovinglinux
June 5th, 2009, 11:43 PM
Hey one more question.
Does Bitdefender (Linux Version) remove the virus once it finds them?
Yes, it provides options to disinfect, quarantine or delete the file.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.