ftp transparent virus scan

I'm not aware of any way to scan for viruses in FTP traffic.

You can periodically scan the FTP directory looking for viruses, but during traffic, in real time, I don't think there's a way to do that.
 
You can scan the file when it's uploaded on your storage. It can be done via script which call the antivirus scan upon the file upload or via on file access scan.
If you are using Pure-FTPd there's a pure-uploadscript(8) which is run after a file is upload.
Here's is example of this configuration for CentOS you will need to adapt it.

Other method is to use on access scan but you will need a FUSE file system to intercept all r/w check this port:
 
I have used FROX as a ftp proxy. The port description writes about 'optional virus scan', but I never used it for that purpose.
ftp/frox
Code:
This is frox, a transparent ftp proxy by James Hollingshead.

Current features include:

  o rfc959 compliant transparent proxying of ftp connections.
  o active --> passive mode conversion for data connections.
  o Optional caching support either locally or through an external
    HTTP cache.
  o Optional virus scanning
  o Optional non-transparent proxy support by logging in with
    user@host:port.
  o Options to bind to a specific interface, chroot, and drop
    priveleges for security.

WWW: http://www.hollo.org/frox/
 
I have used FROX as a ftp proxy. The port description writes about 'optional virus scan', but I never used it for that purpose.
ftp/frox
Code:
This is frox, a transparent ftp proxy by James Hollingshead.

Current features include:

  o rfc959 compliant transparent proxying of ftp connections.
  o active --> passive mode conversion for data connections.
  o Optional caching support either locally or through an external
    HTTP cache.
  o Optional virus scanning
  o Optional non-transparent proxy support by logging in with
    user@host:port.
  o Options to bind to a specific interface, chroot, and drop
    priveleges for security.

WWW: http://www.hollo.org/frox/
Thanks I used frox, did some modifications.
 
Back
Top