LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-04-2009, 01:03 PM   #1
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
squid c-icap download file problem


The problem which I am facing is with the download of any file
from a client machine, I get redirected to the same file, and I have a
copy of same file on proxy server under
/home/i_cap_virsave/www/htdocs/downloads/ with different names.

Ideally it should download the file, and remove downloaded file from
squid proxies /home/i_cap_virsave/www/htdocs/downloads folder.

what can be the problem? has anyone tried squid+c-icap together?


The setup is as follows:

I have squid-2.7.6, dansguadian version 2.10.0.3, and
c-icap-030606_5,1 installed on FreeBSD7.1

c-icap is listening on port 1344
running as user/group cicap

squid is running as user/group squid port 3128 (checks for the virus
by contacting port 1344 from c-icap)

dansguardian is running on port 8080 (connects to the squid port 3128)

Clients are accessing threw port 8080 of proxy server.


I have defined a different path with as follows [file name
/usr/local/etc/c-icap.conf]:
srv_clamav.VirSaveDir /home/i_cap_virsave/www/htdocs/downloads/

To retrive downloads I have changed the parameter of
srv_clamav.VirHTTPServer
"http://fortune/cgi-bin/get_file.pl?usename=%f&remove=1&file="

with
srv_clamav.VirHTTPServer
"http://10.139.7.6/cgi-bin/get_file.pl?usename=%f&remove=1&file="

I copied /usr/ports/www/c-icap/work/c_icap-030606rc1/contrib/get_file.pl
to /usr/local/www/cgi-bin/ directory
started the apache service.




Thanks
Anuj Singh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict download of file of certain size using squid. linuxlover.chaitanya Linux - Server 7 12-06-2008 06:22 PM
download torrent file through squid soumalya Linux - Networking 1 11-26-2008 04:55 PM
Block any download type of file in squid....... farrukhndm Linux - Server 0 09-02-2008 06:29 AM
block *.* file download using squid soumalya Linux - Security 6 12-21-2006 02:51 AM
Squid + ICAP server = ? dimm_coder Linux - Software 0 12-09-2003 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration