LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-31-2008, 05:10 AM   #1
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Rep: Reputation: 15
Squid - Error


Dear Friends

I am using RHEL5 Edition With Squid proxy. I am using 4 windows machine (10.0.0.1 - 10.0.0.4). I want restrict hotmail, yahoo website in two mahcines (10.0.0.3, 10.0.0.4) how to restrict it.

I have configured squid. But it doesn't working properly.

----------------------------------------------------------
acl block_url url_regex -i "/etc/squid/block_url"
acl brow_ip1 src 10.0.0.1 10.0.0.2
acl brow_ip2 src 10.0.0.3 10.0.0.4

http_access allow brow_ip1 block_url
http_access allow brow_ip2
http_access deny block_url

------------------------------------------------------------

#vim "/etc/squid/block_url
http://www.hotmail.com
http://www.yahoo.com

How to solve this problem please help me.

Thank you
Kannan
 
Old 12-31-2008, 07:13 AM   #2
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 579

Rep: Reputation: 30
Do you want to deny the block_url to which IP group?

Code:
http_access allow brow_ip1 block_url
http_access allow brow_ip2
http_access deny block_url
Suppose you want to allow brow_ip1 and deny brow_ip2, I will write the squid.conf like this.


Code:
http_access  block_url deny all
http_access  block_url  allow brow_ip1
All the best

Last edited by ZAMO; 12-31-2008 at 07:16 AM.
 
Old 12-31-2008, 11:43 PM   #3
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
Sir,

Your answer is not working properly.

Please reply
 
Old 01-01-2009, 03:08 AM   #4
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Rep: Reputation: 17
http_access allow brow_ip1 block_url
http_access allow brow_ip2
http_access deny block_url

I think this should be getting conflict... You're both allowing and denying same acl...
 
Old 01-01-2009, 06:01 AM   #5
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
how to restrict?
Please help me
 
Old 02-24-2009, 06:57 AM   #6
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
This is what you gotta do:


acl block_url url_regex -i "/etc/squid/block_url"
acl brow_ip1 src 10.0.0.1-10.0.0.2/32
acl brow_ip2 src 10.0.0.3-10.0.0.4/32

http_access deny brow_ip2 block_url
http_access allow brow_ip1 brow_ip2
http_access deny all
 
  


Reply

Tags
squid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
installing squid : service squid start --> error jonaskellens Linux - Software 2 09-05-2008 04:06 AM
error squid albeniz Linux - Server 6 09-18-2007 06:46 AM
Squid Error kemplej Linux - Software 1 12-17-2003 07:22 PM
Squid Error bally Linux - Networking 2 10-23-2003 04:15 AM
Squid error Buttercups Linux - Newbie 4 10-22-2002 11:58 PM


All times are GMT -5. The time now is 02:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration