LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-14-2010, 04:41 AM   #1
nazihhaddad
LQ Newbie
 
Registered: May 2010
Posts: 15

Rep: Reputation: 0
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,
 
Old 05-14-2010, 05:33 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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?
 
Old 05-14-2010, 07:32 AM   #3
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Quote:
Originally Posted by nazihhaddad View Post
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.
 
Old 05-14-2010, 09:29 AM   #4
nazihhaddad
LQ Newbie
 
Registered: May 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 05-14-2010, 10:48 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by nazihhaddad View Post
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.
 
Old 05-14-2010, 12:37 PM   #6
nazihhaddad
LQ Newbie
 
Registered: May 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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 ..
 
Old 05-14-2010, 03:21 PM   #7
nazihhaddad
LQ Newbie
 
Registered: May 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 05-14-2010, 03:24 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by nazihhaddad View Post
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.
 
Old 05-14-2010, 03:36 PM   #9
nazihhaddad
LQ Newbie
 
Registered: May 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 05-14-2010, 04:18 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by nazihhaddad View Post
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
 
  


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
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
My squid server is running slow i have 40 fedora 11 in my squid proxy ashraflinux1@gmail.com Linux - Server 4 09-15-2009 12:17 AM
LXer: Squid Proxy Server On Ubuntu 9.04 Server With DansGuardian, ClamAV, And WPAD LXer Syndicated Linux News 0 07-03-2009 08:51 PM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 01:03 AM

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

All times are GMT -5. The time now is 10:05 PM.

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