LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-05-2010, 03:04 AM   #1
lokesh21
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Unhappy squid proxy block sites or domain


hi sir,
i have a problem with sites or domain blocking by squid proxy server in rehl 5. I have trying lots of time but i'm not succed.pls help me how to block sites or domain in rhel 5.
 
Old 04-05-2010, 03:19 AM   #2
ganiutomo
LQ Newbie
 
Registered: Jun 2009
Posts: 14

Rep: Reputation: 2
Hi lokesh21

Personally it's difficult to answer your question. You don't provide enough detail.
First I'd like to know is, are you sure squid is running and internet connection is proxy-ed trough squid?
 
Old 04-05-2010, 03:24 AM   #3
bakdong
Member
 
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
This is from the SquidFAQ, http://wiki.squid-cache.org/SquidFaq..._porn_sites.3F, maybe it will help?

I set up my access controls, but they don't work! why?

If ACLs are giving you problems and you don't know why they aren't working, you can use this tip to debug them.

In squid.conf enable debugging for section 33 at level 2. For example:

debug_options ALL,1 33,2

Then restart or reconfigure squid.

From now on, your cache.log should contain a line for every request that explains if it was allowed, or denied, and which ACL was the last one that it matched.

If this does not give you sufficient information to nail down the problem you can also enable detailed debug information on ACL processing

debug_options ALL,1 33,2 28,9

Then restart or reconfigure squid as above.

From now on, your cache.log should contain detailed traces of all access list processing. Be warned that this can be quite some lines per request.

See also SquidFaq/TroubleShooting.
 
Old 04-05-2010, 07:51 PM   #4
rfreiberger
Member
 
Registered: Jul 2009
Location: Union City, CA, USA
Distribution: FreeBSD, Mint, CentOS
Posts: 35

Rep: Reputation: 16
I'm having a similar problem, I tried the steps listed on the FAQ and no success. Then I figured, well if it's a rule set, it must use some logic.

So I reversed the http_access as follows.

(this is the non-working config)


http_access allow subnet_1
http_access allow subnet_2
http_access deny blocksites

(this is the working config)

http_access deny blocksites
http_access allow subnet_1
http_access allow subnet_2

I restarted Squid and it's now blocking the site. Hope this helps.

Rob
 
  


Reply


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
Squid to block all the sites except 1 or 2 sites winxandlinx Linux - Networking 8 10-27-2010 02:53 AM
how to block web sites using squid proxy rupalit Ubuntu 1 07-16-2009 07:49 PM
Ubuntu 8.04: Transparent proxy using squid working but block domain not working bleketux Linux - Networking 10 03-16-2009 06:41 AM
squid 2.6 not blocking sites even i entered ACL to block sites mohantorvalds Linux - Server 1 01-08-2009 04:17 AM
Squid block sites linuxnirmal Linux - Security 5 11-15-2006 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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