Showing posts with label antiviruses. Show all posts
Showing posts with label antiviruses. Show all posts

Tuesday, May 5, 2009

how to install csf in ubuntu / linux servers!

CSF instllation in ubuntu / linux servers!

CSF is a firewall that can be installed on linux based severs to enhance the security. It can be installed even on a server based on cPanel. It can be configured to find out hacking attempts through ssh etc. Can be used for ip whitelisting and blacklisting.

The csf instllation is quite easy. Just follow the documentation I have given below.

1)Create a folder 'csf'

mkdir csf
cd csf



2)Download the csf into this directory and instal.

wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

3)Now we need to test whether we have the required iptables modules in the system

perl /etc/csf/csftest.pl

you may get a result like this
======================================================================================
root@humanlinux-desktop:/home/hlinux/Downloads/csf/csf# perl /etc/csf/csftest.pl
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing ipt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK

RESULT: csf should function on this server
=======================================================================================


Don't worry if you cannot run all the features, so long as the script doesn't
report any FATAL errors

4)You should not run any other iptables firewall configuration script. For
example, if you previously used APF+BFD you can remove the combination (which
you will need to do if you have them installed otherwise they will conflict
horribly):

sh /etc/csf/remove_apf_bfd.sh

5)That's it. You can then configure csf and lfd by edit the files
directly in /etc/csf/*, or on cPanel servers use the WHM UI

csf installation for cPanel is preconfigured to work on a cPanel server with all
the standard cPanel ports open.

csf installation for DirectAdmin is preconfigured to work on a DirectAdmin
server with all the standard DirectAdmin ports open.

csf auto-configures your SSH port on installation where it's running on a non-
standard port.

csf auto-whitelists your connected IP address where possible on installation.

You should ensure that kernel logging daemon (klogd) is enabled. Typically, VPS
servers have this disabled and you should check /etc/init.d/syslog and make
sure that any klogd lines are not commented out. If you change the file,
remember to restart syslog.

See the readme.txt file for more information.

Webmin Module Installation/Upgrade:-

To install or upgrade the csf webmin module:

Install csf as above
Install the csf webmin module in:
Webmin > Webmin Configuration > Webmin Modules >
From local file > /etc/csf/csfwebmin.tgz > Install Module


Uninstallation of CSF :( :-

Removing csf and lfd is even more simple:

On cPanel servers:

cd /etc/csf
sh uninstall.sh

On DirectAdmin servers:

cd /etc/csf
sh uninstall.directadmin.sh

On generic linux servers:

cd /etc/csf
sh uninstall.generic.sh


un-installation Completed

ref: http://www.configserver.com/free/csf/install.txt


thanks & regards
tell2humanlinux@gmail.com



Wednesday, April 22, 2009

Antivirus For Linux!


These days I was dealing with some security related packages. I had gone through the changes to be made on IPTABLE to enhance the firewall, and a little bit about SELinux.I came to know about ClamAV, an anti-virus package for Linux..

Clam AntiVirus (ClamAV) is a free, cross-platform antivirus software tool-kit. One of its main uses is on mail servers as a server-side email virus scanner. The application was developed for Unix and has third party versions available for AIX, BSD, HP-UX, Linux, Mac OS X, OpenVMS, OSF and Solaris.


ClamAv has the following features!

  1. a command line scanner
  2. automatic database updater
  3. scalable multi-threaded daemon
  4. running on an anti-virus engine from a shared library
  5. a Milter interface for sendmail
  6. on-demand scanning
  7. supports many document formats, including Microsoft Office, HTML, Rich Text Format and Portable Document Format.
  8. It also support for Zip, RAR, Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS formats, most mail file formats, ELF executables and Portable Executable files compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and obfuscated with SUE, Y0da Cryptor.

The ClamAV virus database is updated several times each day and as of 25 December 2008 contained 479,371 virus signatures.

Latest Stable Release:

Latest ClamAV® stable release is: 0.95.1
Total number of signatures: 545288
ClamAV Virus Databases:
main.cvd ver. 50 released on 15 Feb 2009 16:47 :0500
daily.cvd ver. 9274 released on 22 Apr 2009 13:17 :0400 (on 04/23/09)

Download the production quality stable release here

Download the latest virus database:

main.cvd ver. 50 released on 15 Feb 2009 16:47 :0500
daily.cvd ver. 9274 released on 22 Apr 2009 13:17 :0400

How to install clamAV in Debain ?

The Debian packages are maintained by Stephen Gran. ClamAV has been officially included in the Debian distribution starting from the sarge release. Run apt-cache search clamav to find the name of the packages available for installation.

You can also use one of the Debian volatile repositories to keep your ClamAV installation updated on your system.

Always choose the mirror near to you.
Edit /etc/apt/sources.list and add a line like this to it:

stable/etch:

deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free

Then run apt-get update and apt-get install clamav
If you need clamd, you may also want to run apt-get install clamav-daemon

How to install clamAV in Ubuntu?

The Ubuntu packages are maintained by Ubuntu MOTU Developers. ClamAV has been officially included in the Ubuntu distribution since the first Ubuntu release. Run apt-cache search clamav to find the name of the packages available for installation.


The released set (release, *-updates, and *-security) are patched for security updates. Following extensive testing of clamav and the packages that use it in the backports repository, they may be updated to a newer version. These are official Ubuntu packages and supported by community developers.


The Ubuntu backports repository will contain the newest clamav version that has been at least lightly tested to work with that version. These packages can be installed by enabling the backports repository in your system. These are official Ubuntu packages and supported by community developers.


How to install calmAV in Redhat/Fedora ?

Two very good repositories are maintained by Dag Wieers dag at wieers*com:

http://packages.sw.be/clamav/

and Oliver Falk:

SRPMS: http://filelister.linux-kernel.at/?current=/packages/SRPMS/
FC devel: http://rpms.linux-kernel.at/?current=/lkernAT/fedora/core/development/i386
FC 3: http://rpms.linux-kernel.at/?current=/lkernAT/fedora/core/3/i386
RedHat 8.0: http://rpms.linux-kernel.at/?current=/lkernAT/redhat/extras/8.0/i386


How to install clamAV in Mandriva ?

Official Mandriva packages for cooker and supported updates (2006.0 and newer) are maintained by Oden Erikkson. For updates, use the software package manager or urpmi:

urpmi.update—update

urpmi—update—auto clamd

Unofficial packages for current and several older Mandriva distributions are maintained by Bill Randle and are available from his web server.


How to install clamAV in SuSe ?

Official SuSe packages for clamAV are maintained by Reinhard Max.

You can get it from here .


Thanks & regards

tell2humanlinux@gmail.com

Sunday, April 19, 2009

Open Source antivirus - ClamWare .

ClamWin is free, open source antivirus software for Microsoft Windows,(dont worry you can run it on Ubuntu using Wine).I Liked ClamWin because , it is OpenSource and also its PORTABLE. Yes, it has a portable version that can be used from a USB flash drive. Scan baby Scan!!!

some of the features of ClamWin are:

  1. Standalone virus-scanner
  2. Scanning scheduler.
  3. Automatic virus database updates on a regular basis.
  4. Context menu integration for Windows Explorer.
  5. Add-in for Microsoft Outlook.
  6. And is portable that can be used from a USB flash drive :)
  7. Extensions availabe to scan file that are downloaded.
  8. Addin to Microsoft Outlook to remove virus-infected attachments automatically.
  9. Standalone virus scanner and right-click menu integration to Microsoft Windows Explorer

The latest version of Clamwin Free Antivirus is 0.95.1.Please note that ClamWin Free Antivirus does not include an on-access real-time scanner. You need to manually scan a file in order to detect a virus or spyware.ClamWin Free Antivirus is based on ClamAV engine and uses GNU General Public License.



Portable ClamWin on a USB or Removable Drive:

Follow this guide to make your own portable ClamWin

You can take ClamWin Free Antivirus with you on a USB pen drive, CD or DVD

1)Install ClamWin on a host PC with Windows XP or higher

2)Copy all the files from "c:\program files\clamwin" to a "clamwin" folder on a removable drive. unins000.exe and unins000.dat files are not needed

3)Copy the following files:
Microsoft.VC80.CRT.manifest
msvcm80.dll
msvcm80.dll
msvcr80.dll
from "c:\program files\clamwin\bin\Microsoft.VC80.CRT" to the "clamwin\bin" folder on your removable drive.

4)Copy this ClamWin.conf (right-click to Save) file to "clamwin\bin" folder on the removable drive (note Standalone=1 setting)

5)Create the folowing foldres on the removable drive:
"clamwin\log"
"clamwin\db"
"clamwin\quarantine"

6)Copy the database files (main.cvd and daily.cvd) from your database directory on the host PC (default location is "C:\Documents and Settings\All Users\.clamwin\db") to the "clamwin\db" folder on the removable drive.

That's it, you can now run clamwin.exe from clamwin folder on your removable drive.

Notes:
It may take a while to load ClamWin.exe depending on the removable drive speed
If you use ClamWin Free Antivirus on a read-only drive (CD or DVD) your need to burn the latest database before use and won't be able to change preferences.

Tip: Click here to see the list of some portabe softwares.


thanks & regards
tell2humanlinux@gmail.com