Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329
Rep:
Quote:
Originally Posted by nazihhaddad
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.
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.
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.
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 ...
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.