LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2007, 11:30 AM   #1
Ratty_UK
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
Question squidGuard not stopping ip addresses.


Hi,

I'm setting up a squid box for work with squidGuard I have it working so far as it works off blacklists but for some reason it doesn't stop you putting in ip addresses my acl looks like this:

acl {

IPS within nonworkhours {
pass whitelist !in-addr !adult !porn !hacking !phishing !spyware !virusinfected !dialers }


else {
pass whitelist !in-addr !adult !ads !antispyware !artnudes !chat !dating !dialers !drugs !instantmessaging !kidstimewasting !onlinegames !phishing !ringtones !sexuality !spyware !virusinfected !weapons !webmail !porn !hacking !aggressive !violence !warez !mail !admin all

}

default {
pass !in-addr whitelist
}
}


as you can see !in-addr is the first thing it stops

any clues?
 
Old 04-05-2007, 04:09 AM   #2
Jordi
LQ Newbie
 
Registered: Mar 2007
Location: Barcelona
Distribution: CentOS
Posts: 11

Rep: Reputation: 0
Have you already looked at SquidGuard logs?
 
Old 04-05-2007, 06:06 AM   #3
Ratty_UK
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Yes I've looked at the tail of the Squidguard and squid logs for times when I have been testing and I cannot see anything wrong at all.

Rat
 
Old 04-05-2007, 08:32 AM   #4
Ratty_UK
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I've fixed it. So in the interests of sharing I'm going to post the answer:
I was handling the redirects in the Dest portion of the config file when adding !in_addr I wasn't telling squidguard were to send the redirect so it just passed it through the correct thing to do is this:
acl {

IPS within nonworkhours {
pass whitelist !in-addr !adult !porn !hacking !phishing !spyware !virusinfected !dialers
redirect http://somesite/some.html
}


else {
pass whitelist !in-addr !adult !ads !antispyware !artnudes !chat !dating !dialers !drugs !instantmessaging !kidstimewasting !onlinegames !phishing !ringtones !sexuality !spyware !virusinfected !weapons !webmail !porn !hacking !aggressive !violence !warez !mail !admin all
redirect http://somesite/some.html
}

default {
pass !in-addr whitelist
redirect http://somesite/some.html
}
}

That tells squidguard to redirect to a given site.

a very happy
Rat
 
  


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
error: mail command failed for /var/log/squidguard/squidGuard.log.6 Niceman2005 Linux - Networking 1 01-22-2009 01:24 PM
Mapping IP addresses to MAC addresses basilio Linux - Networking 17 09-12-2007 01:48 AM
SquidGuard Dogar Linux - Software 17 08-15-2007 10:33 AM
mechanics of mapping process memory addresses to physical addresses on amd64 Tischbein Linux - Kernel 2 02-01-2007 08:09 PM
squidGuard hariiyer Linux - Networking 4 12-21-2004 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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