Table of Contents
This article examines Integrated and explains the main developments, practical implications, and context readers should understand.
Integrated Overview
Preliminary note
PureFTPd is installed and works well on CentOS 5.4 server system.
Install ClamAV
In practice, ClamAV is not available on CentOS repository, so we must enable RPMforge repository:
Rpm --import http://dag. Wieers. Com/rpm/packages/RPM-GPG-KEY. Dag. Txt cd / tmp wget http://dag. Wieers. Com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1. El5. Rf. X86_64. Rpm rpm -ivh rpmforge-release-0.3.6-1. El5. Rf. X86_64. Rpm
Then proceed to install ClamAV as follows:
Yum install clamav clamd
Next create the boot path for clamd and activate it at the same time:
Chkconfig --levels 235 clamd on / usr / bin / freshclam /etc/init. D/clamd start
Set up PureFTPd
First, open the /etc/pure-ftpd/pure-ftpd. Conf file and set the CallUploadScript value to yes:
Then, create the file /etc/pure-ftpd/clamav_check. Sh (with the function to call / usr / bin / clamdscan whenever data 'goes through PureFTPd'):
Vi /etc/pure-ftpd/clamav_check. Sh #! / bin / sh / usr / bin / clamdscan --remove --quiet --no-summary "$ 1"
And assign executable properties to the application:
Chmod 755 /etc/pure-ftpd/clamav_check. Sh
Then, starting the pure-uploadscript program as a daemon application - the program will call the /etc/pure-ftpd/clamav_check. Sh script whenever the data is downloaded via PureFTPd:
Pure-uploadscript -B -r /etc/pure-ftpd/clamav_check. Sh
Besides, most people don't want to activate the daemon program every time they start the system, so do the following: open /etc/rc. Local.:
Vi /etc/rc. Local
And add the following command LINE / usr / sbin / pure-uploadscript -B -r /etc/pure-ftpd/clamav_check. Sh. Examples are as follows:
Then restart PureFTPd:
/etc/init. D/pure-ftpd restart
So, you have completed the integration of ClamAV security program with PureFTPd, and every time the data is transferred through here, ClamAV will work, review and automatically delete the suspected files infected.
Good luck!
FAQ
What is the main topic of Integrating Clamav with Pureftpd in ??centos 5.4: Integrated?
This article examines Integrated and explains the main developments, practical implications, and context readers should understand.
Why is Integrated important?
Integrated Overview Preliminary note PureFTPd is installed and works well on CentOS 5.4 server system.
What should readers remember about Integrated?
Install ClamAV In practice, ClamAV is not available on CentOS repository, so we must enable RPMforge repository: Rpm --import http://dag.
Reader Comments 0
Sign in with email or Google to join the discussion.