Community Forum

Resolved
0 votes
Hi to all

I have ClearOS Business 7 installed and working in production. This is a clean install. I'm using web proxy server, with user authentication and cache.

I think the proxy cache is not working as expected. When I was using version 6 the proxy cache downloaded a file only the first time and the next time you ask for that file it gave you a cached download, so it was faster.

But now I see it downloads the file again, even in the same computer. An example:

chestrada@estacion10:/tmp$ wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/47.0.1/linux-x86_64/en-US/firefox-47.0.1.tar.bz2
--2016-07-13 11:02:24-- https://download-installer.cdn.mozilla.net/pub/firefox/releases/47.0.1/linux-x86_64/en-US/firefox-47.0.1.tar.bz2
Connecting to 192.168.1.1:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 53841168 (51M) [application/x-tar]
Saving to: ‘firefox-47.0.1.tar.bz2’

100%[===========================================================================================================================================================================>] 53,841,168 319KB/s in 7m 52s

2016-07-13 11:10:16 (111 KB/s) - ‘firefox-47.0.1.tar.bz2’ saved [53841168/53841168]

chestrada@estacion10:/tmp$ ll firefox*
-rw-rw-r-- 1 chestrada chestrada 53841168 jun 28 06:52 firefox-47.0.1.tar.bz2
chestrada@estacion10:/tmp$
chestrada@estacion10:/tmp$ rm firefox-47.0.1.tar.bz2
chestrada@estacion10:/tmp$
chestrada@estacion10:/tmp$ wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/47.0.1/linux-x86_64/en-US/firefox-47.0.1.tar.bz2
--2016-07-13 11:19:17-- https://download-installer.cdn.mozilla.net/pub/firefox/releases/47.0.1/linux-x86_64/en-US/firefox-47.0.1.tar.bz2
Connecting to 192.168.1.1:8080... connected.

Proxy request sent, awaiting response... 200 OK
Length: 53841168 (51M) [application/x-tar]
Saving to: ‘firefox-47.0.1.tar.bz2’

100%[===========================================================================================================================================================================>] 53,841,168 292KB/s in 5m 47s

2016-07-13 11:25:25 (152 KB/s) - ‘firefox-47.0.1.tar.bz2’ saved [53841168/53841168]

chestrada@estacion10:/tmp$



And I see the same behaviour in all kinds of downloads (e.g, debain's APT). I don't see anything wrong in the logs, and my configuration seems right.

Can you please guide me in what I'm doing wrong.

Thank you.
Wednesday, July 13 2016, 05:29 PM
Share this post:
Responses (6)
  • Accepted Answer

    RAUL
    RAUL
    Offline
    Monday, July 16 2018, 01:39 PM - #Permalink
    Resolved
    0 votes
    Hi again.

    I've figure out the https matter. In a quick search, I didn't find any download from a http site in order to try it.

    I was reading a little and found that it's possible to create a certificate in COS in order to allow it to cache objects from https websites. It would be great because most of downloads come from https sites. The proxy is working in transparent mode and here, we don't have any directory, so, I'll have to install the cert in every workstation. About the directory thing, I'm a little "afraid" of using samba or ldap; never did that before and this is a production environment. Of course, I should test it in a lab environment, but I don't have the time for that right now. I know nothing about its stability or complexity.

    Thanks for your responses.

    Best regards.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 11 2018, 07:16 PM - #Permalink
    Resolved
    0 votes
    Raul, 7.5 was released into Community on Thursday night although I did not know it until Saturday so you are completely up to date.

    Which mode is your proxy in? If it is transparent it cannot intercept https traffic and therefore can't cache it. You need an http link to test. If you are in authenticated mod ite can cache. M$ updates probably have the same issue. To run cacheless you have to adjust the config yourself and there is a knowledgebase article covering it. It looks like you need a disk about 20x faster than your internet download speed.
    The reply is currently minimized Show
  • Accepted Answer

    RAUL
    RAUL
    Offline
    Wednesday, July 11 2018, 06:35 PM - #Permalink
    Resolved
    0 votes
    Hi Nick. As always, thanks a lot for your response.

    I'ts actually COS 7.5 acording to the release file. It was 7.2 at installation time.

    After doing some changes at squid config, according the wiki, I see it remains the no-caching situation. I'm just testing with a little download (https://calibre-ebook.com/download_portable), but I see nothing happens. Of course, I'v restarted the squid service.

    Now, I ask myself if it is only me (and perhaps Carlos), who are having this issue. Because now the ISPs offer a good service (I mean in speed), I guess nobody is focusing on this. I have to recognize that I've discovered this issue a lot of time ago, doing some search, but leaving the issue to be solved later.

    Anyone willing to perform a little test to determine whether o not squid is caching?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 06 2018, 08:02 PM - #Permalink
    Resolved
    0 votes
    Have a look at this squid doc and this M$ doc and see if they help.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 06 2018, 04:20 PM - #Permalink
    Resolved
    0 votes
    I hope you're now on 7.4 and not 7.2 or you'll be missing a bunch of updates. If your updates run automatically you'll be on Clearos 7.4 ("cat /etc/clearos-release").

    There used to be a tweak you could to to allow the proxy to cache bigger files and perhaps that was done in ClearOS 6. I'd have to hunt the forum for it. Otherwise search the internet for something like "squid cache windows update"
    The reply is currently minimized Show
  • Accepted Answer

    RAUL
    RAUL
    Offline
    Friday, July 06 2018, 03:47 PM - #Permalink
    Resolved
    0 votes
    Hi there.
    I see this is an old post, anyway, I'm having the same problem in COS 7.2.

    What did you do regarding this issue?

    Anyone else having any remarks?

    Regards.
    The reply is currently minimized Show
Your Reply