LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-17-2009, 06:09 AM   #1
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
Squid proxy server Help??


Hi,

I have configured the squid proxy server on CentOS5 with the help of acl blocking.... and it is running fine , i got acl database blocking list fro http://squidgards.org site which is having almost 200000 porn sites database.. and now i can block yahoo.com / rediff / and anyother mail sites..

My problem is that after implementing squid server it is blocking some of important urls that is required for the company users... and should be accessible even after squid...

Can anyone please let me know how to allow certain urls or web-links time to time from the squid proxy server.... as it is very difficult for me to check entry in 200000 ulrs database to see which entry is blocking for some of the important urls for my organization..

Any help would be greatly appreciated.
 
Old 11-17-2009, 11:29 AM   #2
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
Create a new rule that lists the sites to which you want to allow access

Quote:
acl allowed_sites_regex url_regex -i ^http://myurl.that.i.want.to.allow
The above rule creates a list of urls based on regex patterns you could use domain names or the other supported methods. The URLs should be one on a line or better still they should be stored in a file such as

Quote:
acl allowed_sites_regex url_regex -i "/etc/squid/allowed_sites_regex.txt"
Put the regex's into the file one on each line. Then before your rule that adds the squidguards block list put the rule

Quote:
http_access allow allowed_sites_regex
Your list is checked first, if the URL they are trying to access is in your URL regex list in your file then they will be allowed if not it continues on to check the blacklist.
Note: that the order of the http_access entries matters.

Last edited by cardy; 11-17-2009 at 11:32 AM.
 
Old 11-18-2009, 12:37 AM   #3
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Wink

Quote:
Originally Posted by cardy View Post
Create a new rule that lists the sites to which you want to allow access



The above rule creates a list of urls based on regex patterns you could use domain names or the other supported methods. The URLs should be one on a line or better still they should be stored in a file such as



Put the regex's into the file one on each line. Then before your rule that adds the squidguards block list put the rule



Your list is checked first, if the URL they are trying to access is in your URL regex list in your file then they will be allowed if not it continues on to check the blacklist.
Note: that the order of the http_access entries matters.
Thanks So much that really worked for me.
 
  


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 On
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 - General

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