LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid Proxy Server (https://www.linuxquestions.org/questions/linux-server-73/squid-proxy-server-807779/)

nazihhaddad 05-14-2010 04:41 AM

Squid Proxy Server
 
Sorry for posting in 2 threads, but i'm a new user and i didn't know that could cause a problem.
anyway i have a problem concerning Squid Proxy Server , i don't know if it should be called a problem, but when i was checking the access.log file in squid logs i'm getting TCP_MISS as well as in some places TCP_HIT, (and TCP_REFRESH_MISS, Never TCP_REFRESH_HIT) what does that mean ? and i've accesed the store.log file also, i'm watching in some places SWAPOUT 00 00000AA and numbers etc..
Please i need to know if my Squid Server is working properly.
and if it is, why when i'm trying to unplug the internet (ISP) cable and trying to access websites only from squid it doesn't work at all if only i return back the internet cable??
any respone to my question would be greatly appreciated.

Thank You,

bathory 05-14-2010 05:33 AM

Hi,

Regarding the codes in access.log, I've answered to your other thread

Quote:

why when i'm trying to unplug the internet (ISP) cable and trying to access websites only from squid it doesn't work at all if only i return back the internet cable??
Without an internet connection how do you suppose to access a website? Could you explain what you mean by that?

HasC 05-14-2010 07:32 AM

Quote:

Originally Posted by nazihhaddad (Post 3968106)
and if it is, why when i'm trying to unplug the internet (ISP) cable and trying to access websites only from squid it doesn't work at all if only i return back the internet cable??

why would you think you can get internet *without* your internet connection?? now that's an oxymoron... Or you need to study a little more.

Or clarify your question.

nazihhaddad 05-14-2010 09:29 AM

look i think that you have yourself to study more and more, because squid proxy server is for caching dear :)
have you ever tried to work offline on your pc ? if so, from where did you get the webpage ? of course from your
internal cache .
that's what i meant with my question dear.

i don't wanna access the internet without plugging the cable, but i just want to access the webpages cached on my proxy server without using the internet connection or even without plugging the internet cable.

and i think that's the job of a proxy server.

TB0ne 05-14-2010 10:48 AM

Quote:

Originally Posted by nazihhaddad (Post 3968432)
look i think that you have yourself to study more and more, because squid proxy server is for caching dear :)
have you ever tried to work offline on your pc ? if so, from where did you get the webpage ? of course from your internal cache .
that's what i meant with my question dear.

i don't wanna access the internet without plugging the cable, but i just want to access the webpages cached on my proxy server without using the internet connection or even without plugging the internet cable.

and i think that's the job of a proxy server.

Nope, sorry. A proxy server acts as a go-between, from one system to another.

Your local browsers INTERNAL cache is not the same as a proxy cache. Think about what you're doing...even if you tell Squid to cache all the pages it sees, what happens when you request one? Per the Squid directives, it'll check to see if the page on the net is newer, before serving the one up in cache. Since it can't check...proxy server has problems, and doesn't server ANYTHING up. If you want to browse pages offline, there are many other solutions to let you download and mirror sites to your hard drive. Squid isn't it, and it was never designed to be.

nazihhaddad 05-14-2010 12:37 PM

ummmmmmm, ok it seems i've misunderstood the concept of squid, anyway i'm very sorry for taking your time .

then, i will study well :P

thank you ..

nazihhaddad 05-14-2010 03:21 PM

Tb0ne i have a question plz. if a user from my internal network downloaded let's say an mp3 song and another user also on my internal lan have downloaded the same song from the same webpage, does he get the song immediatly i mean in few seconds ??? because it should be cached in the proxy server in the swap directory right ? most ISP's do that. please advise ... and if it is possible could you tell me how to do it because i'm not able to do that ...

thanks in advance

TB0ne 05-14-2010 03:24 PM

Quote:

Originally Posted by nazihhaddad (Post 3968765)
Tb0ne i have a question plz. if a user from my internal network downloaded let's say an mp3 song and another user also on my internal lan have downloaded the same song from the same webpage, does he get the song immediatly i mean in few seconds ??? because it should be cached in the proxy server in the swap directory right ? most ISP's do that. please advise ... and if it is possible could you tell me how to do it because i'm not able to do that ...
thanks in advance

No, most ISP's DON"T cache ANYTHING, because they don't use proxy servers. The amount of traffic they get is too high to be proxied/filtered.

Downloads CAN be cached in Squid, if you configure it to do so. You can read the Squid documentation on their web site, that gives you complete documentation on how to do this.

nazihhaddad 05-14-2010 03:36 PM

thank you but should i search on how to cache downloads ? because i've already made some reasearch concerning this matter, and i didn't find any helpful documentations

TB0ne 05-14-2010 04:18 PM

Quote:

Originally Posted by nazihhaddad (Post 3968786)
thank you but should i search on how to cache downloads ? because i've already made some reasearch concerning this matter, and i didn't find any helpful documentations

Look for caching, and http acceleration. Example, from the Squid doc site:
http://wiki.squid-cache.org/ConfigEx...sicAccelerator


All times are GMT -5. The time now is 02:59 AM.