LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2005, 09:44 AM   #1
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 73

Rep: Reputation: 21
windows hosts file, not working anymore with squid :(


today, on my router box, (linux) i have installed squid 2.2 stable.
mhh, freesco linux box to be ecactly.

the cache works like a rocket ,but it also now allows the sites i have blocked in my windows hostsfile (this file is currently 4.5MB) ,how to i get squid so that it still works with the hosts file..

moving it to the router is no solution, because some persons want to browse some blocked sites (ehmmm,ok, you know witch one)

i work here with mozilla as browser..

any help would be greatfull.

Tony.
 
Old 02-10-2005, 12:19 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
How are you blocking sites with the windows hosts file?
 
Old 02-10-2005, 12:41 PM   #3
]SK[
Member
 
Registered: Jun 2004
Location: Nottingham, England
Posts: 89

Rep: Reputation: 15
must be resolving them to a fake ip e.g.
127.0.0.1 www.google.com

Your machine doesnt do any DNS requests when using proxy servers so the host file is totally irrelevant here. You need to configre the proxy server to block these sites.

Add them to your linux (proxy) host file?

/etc/hosts

Last edited by ]SK[; 02-10-2005 at 12:44 PM.
 
Old 02-10-2005, 03:34 PM   #4
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 73

Original Poster
Rep: Reputation: 21
Quote:
Originally posted by ]SK[
must be resolving them to a fake ip e.g.
127.0.0.1 www.google.com

Your machine doesnt do any DNS requests when using proxy servers so the host file is totally irrelevant here. You need to configre the proxy server to block these sites.

Add them to your linux (proxy) host file?

/etc/hosts
that is just the problem..
for me the perfect solution..

but for the others who use internet here not.
they want to access sometime these blocked sites..

mhh, if it is no other posibility ,than the hosts goes back to linux
thnxs!
 
Old 02-16-2005, 03:39 PM   #5
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 73

Original Poster
Rep: Reputation: 21
well.
host back to linux(freesco) and translated to language its understand.

however ,i am wondering ,is it normal that squid sometimes hangs when a link is to click to fast, of when a page with many data is requested ,that is hangs?

the most of the time i needed to restart squid..
 
  


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
can not connect to squid cache manager via webmin anymore lovswr Linux - Software 3 04-24-2012 01:44 AM
x windows not working--XF86Config-4 file missing! baldy1324 Debian 3 09-27-2005 02:46 AM
does the /etc/hosts file work same as the M$ hosts file? Lleb_KCir Linux - Software 6 04-03-2004 04:33 PM
Windows using Linux Hosts file RJC Linux - General 0 08-20-2002 08:52 AM
hosts file not working Tekime Linux - Networking 4 04-09-2002 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:12 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