LinuxQuestions.org
Help answer threads with 0 replies.
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 08-16-2008, 01:06 AM   #1
sanjee
Member
 
Registered: Jul 2008
Posts: 129

Rep: Reputation: 15
Arrow My Squid has 2 problems on fedora


I am facing 2 problems regarding squid .
I have setup squid simply . Including allowing & blocking some urls using by url_regs. There is no dstdomain mentioned.System RAM 1.5 GB.

<1.> Some times it takes too much time to resolv/cache even google.com. Even I have used cache_dir.

<2.> Some urls/sites automatically blocking/not resolving (and prompting access denied), while I have not block such kind of url/words . I have to manually put the url in another allowing acl . But Thats too difficult , because there are so many urls. If I use http_access allow/deny all at bottom of all acls , its allowing/blocking all respectively and does not care about previous acls.
 
Old 08-16-2008, 02:09 AM   #2
sachinaxn
LQ Newbie
 
Registered: Apr 2008
Location: India
Posts: 20

Rep: Reputation: 0
u can use dstdomain to block sites
that is too good to block site



sachin
 
Old 08-16-2008, 03:12 AM   #3
sanjee
Member
 
Registered: Jul 2008
Posts: 129

Original Poster
Rep: Reputation: 15
Arrow

Ok...that may works on cache/little quick browse. But I can't understand... why unnecessarily some unknown links/sites/url are automatically blocking.
 
Old 08-16-2008, 03:21 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Can you post the ACLs which are using?

Also, the log file contents of when the access denials occur.
 
Old 08-16-2008, 04:18 AM   #5
sanjee
Member
 
Registered: Jul 2008
Posts: 129

Original Poster
Rep: Reputation: 15
Squid is simply configured

acl mynetwork src X.X.X.X
acl allowsites url_regex -i "/rule/allowsites"
acl blocksites url_regex -i "/rule/blocksites"
http_access deny blocksites
http_access allow mynetwork
http_access allow allowsites
....................................................................................

Here are some examples which are denied.But Once browsed url without squid , as these are in cache .....then no problem to browse through squid.

http://www.cisco.com/en/US/tech/tk82...800a43ee.sh180
http://www.coreims.com/?

I am not geting any reason for the problem.Also this is not good to allow this type of url one after one.

***For security reason I m unable to mention logfiles ; Very very sorry for that***
 
Old 08-16-2008, 04:36 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by sanjee View Post
Squid is simply configured

acl mynetwork src X.X.X.X
acl allowsites url_regex -i "/rule/allowsites"
acl blocksites url_regex -i "/rule/blocksites"
http_access deny blocksites
http_access allow mynetwork
http_access allow allowsites
Ummm, the point was to see the regular expressions themselves, not the name of the files you have them stored in. BTW, you probably should have the mynetwork and allowsites on the same http_access line. That is, unless your intention is to let the clients at X.X.X.X use any websites they wish (unless they match the blocksites ACL) and have the allowsites ACL apply only to people not in X.X.X.X.

Quote:
***For security reason I m unable to mention logfiles ; Very very sorry for that***
You run a Squid server and you don't have access to the log files? Yikes! Well, it's a shame, as it would be incredibly useful information to assist with the troubleshooting.

Last edited by win32sux; 08-16-2008 at 04:39 AM.
 
Old 08-16-2008, 05:12 AM   #7
sanjee
Member
 
Registered: Jul 2008
Posts: 129

Original Poster
Rep: Reputation: 15
Yes I want users can browse all urls until match with "deny acl" . And as per organisation rule I m bound to mention any kind of system log content.
 
Old 08-16-2008, 05:16 AM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by sanjee View Post
Yes I want users can browse all urls until match with "deny acl" . And as per organisation rule I m bound to mention any kind of system log content.
OIC. Well, surely you can at least post the regular expressions no?
 
Old 08-16-2008, 05:44 AM   #9
sanjee
Member
 
Registered: Jul 2008
Posts: 129

Original Poster
Rep: Reputation: 15
If u don't mind.....can u please tell me regular expression means......HIT,MISS or some acl.
 
Old 08-16-2008, 05:45 AM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by sanjee View Post
If u don't mind.....can u please tell me regular expression means......HIT,MISS or some acl.
It's the stuff you wrote in the /rule/allowsites and /rule/blocksites files.
 
Old 08-16-2008, 06:43 AM   #11
sanjee
Member
 
Registered: Jul 2008
Posts: 129

Original Poster
Rep: Reputation: 15
In blocksites file , I have mentioned as following:

yahoo.com
rediff.com
orkut.com
msn
porn
sex
zapak.com
hotmail.com
gmail.com
scype
hi5
sms

I didn't use dstdomain because there are few words like sms etc.
...........................................................................................
In allowsites file , I have mentioned as following: [this because of some links are denied]

http://www.cisco.com/en/US/tech/tk82...800a43ee.sh180
http://www.filecart.com/Windows/Syst...-Plus_937.html
http://www.download.com/Fashion-Stoc...-10581124.html
http://www.cisco.com/en/US/tech/tk82...800a43ee.sh180
http://www.coreims.com/?
project
 
Old 08-18-2008, 02:45 AM   #12
sanjee
Member
 
Registered: Jul 2008
Posts: 129

Original Poster
Rep: Reputation: 15
Any help...please.
 
  


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
fedora as http proxy (squid?)?? jjd228 Linux - Newbie 3 04-09-2008 02:43 PM
fedora 7 yum squid error sumesh.pt Linux - Newbie 6 12-04-2007 06:53 AM
Squid in Fedora 6 winxandlinx Linux - Networking 1 11-29-2006 06:53 AM
squid not starting in Fedora 5 crackerB Linux - Server 1 11-15-2006 06:58 AM
SQUID and RUNESCAPE for Fedora 4 alexanderhay Linux - Networking 2 03-03-2006 06:00 AM

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

All times are GMT -5. The time now is 06:00 AM.

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