LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-08-2008, 05:14 PM   #1
bslag
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
src ACL not working right in Squid


First of all, my apologies for resurrecting a year and a half old topic but it's the only topic I've found through a quick Google search doing exactly what I'm looking for...


Here's the deal,

This works great when just denying the domain ACL - but it is blocked for everyone. When I try to add the client ACL, it no longer works at all.

Here is my exact code
Code:
acl bad_url dstdomain "/etc/squid/bad-sites.squid"
acl bad_kid1 src 192.168.34.82
http_access deny bad_kid1 bad_url
I've also tried it like
Code:
acl sucky_urls dstdomain .microsoft.com .sco.com .doubleclick.com
but the results are the same.

Any help is much appreciated.

Thanks.
 
Old 05-08-2008, 05:31 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by bslag View Post
First of all, my apologies for resurrecting a year and a half old topic but it's the only topic I've found through a quick Google search doing exactly what I'm looking for...
What you should do in cases such as this (instead of resurrecting dead threads) is to use a link to reference the thread in question. I've gone ahead and moved your post into a new thread of its own.
Quote:
Here's the deal,

This works great when just denying the domain ACL - but it is blocked for everyone. When I try to add the client ACL, it no longer works at all.

Here is my exact code
Code:
acl bad_url dstdomain "/etc/squid/bad-sites.squid"
acl bad_kid1 src 192.168.34.82
http_access deny bad_kid1 bad_url
I've also tried it like
Code:
acl sucky_urls dstdomain .microsoft.com .sco.com .doubleclick.com
but the results are the same.

Any help is much appreciated.

Thanks.
Try using 192.168.34.82/32 (or 192.168.34.82/255.255.255.255) instead.
 
Old 05-09-2008, 10:54 AM   #3
bslag
LQ Newbie
 
Registered: May 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, will give the /32 a try here in a bit.

I had tried using /255.255.255.255 already with effect.


And again, apologies for the resurrection.
 
Old 05-09-2008, 01:04 PM   #4
bslag
LQ Newbie
 
Registered: May 2008
Posts: 4

Original Poster
Rep: Reputation: 0
/32 still produces the same result – or the lack there of.

I've made sure that the "http_access deny bad_kid1 bad_url" is before any other http_access, so I'm at a loss.

Last edited by bslag; 05-09-2008 at 02:17 PM.
 
Old 05-10-2008, 05:04 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by bslag View Post
/32 still produces the same result – or the lack there of.

I've made sure that the "http_access deny bad_kid1 bad_url" is before any other http_access, so I'm at a loss.
Me too. I mean, your ACLs look fine to me. Are you 100% certain that the client at 192.168.34.82 is using the proxy? Does he get affected when you use only the bad_url ACL? Are you sure you are using the right client IP?

Last edited by win32sux; 05-10-2008 at 05:07 AM.
 
Old 05-10-2008, 01:00 PM   #6
bslag
LQ Newbie
 
Registered: May 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Yep, I'm positive it's the right IP – I've been testing it on my machine before I actually send it out to someone else. And it definitely works when I only use the bad_url.
 
  


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
ACL not working in Squid Ahmad Gurchani Linux - Security 1 05-02-2006 06:49 PM
squid and acl of mime Ammad Linux - Networking 0 02-11-2006 02:13 AM
Squid acl help cgelectek Linux - Networking 3 11-10-2005 11:04 PM
Squid ACL zeroability Linux - Networking 2 01-13-2003 09:30 AM
Help me in Configuring Squid ACL tina_gora Linux - Networking 0 05-22-2001 02:31 AM

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

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