LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-24-2006, 12:38 PM   #1
scjvsTP
LQ Newbie
 
Registered: Sep 2005
Distribution: SuSE 10, Fedora Core 4
Posts: 15

Rep: Reputation: 0
SquidGuard time limit problem


For some reason, SquidGuard is ignoring my config file. I commented out all the time restrictions and it's still blocking access. Anyone know whats going on here?

Code:
#----------------------------------------------------------------
#   SquidGuard CONFIGURATION FILE
#----------------------------------------------------------------

# CONFIGURATION DIRECTORIES
dbhome /usr/share/squidGuard-1.2.0/db
logdir /var/log/squidGuard

# TIME RULES:
# abbrev for weekdays: 
# s = sun, m = mon, t =tue, w = wed, h = thu, f = fri, a = sat

#time workhours {
#	weekly smtwtfa 00:00-24:59
#}

# SOURCE ADDRESSES:
src privilegedsource {
	iplist	privilegedsource/ips
}

src bannedsource {
	iplist	bannedsource/ips
}



src lansource {
	iplist lansource/lan
}

# DESTINATION CLASSES:
dest porn {
    domainlist porn/domains
    urllist porn/urls
    expressionlist  porn/expressions
}

dest adult {
    domainlist adult/domains
    urllist adult/urls
    expressionlist  adult/expressions
}

dest audio-video {
    domainlist audio-video/domains
    urllist audio-video/urls
}

dest forums {
    domainlist forums/domains
    urllist forums/urls
    expressionlist  forums/expressions
}

dest hacking {
    domainlist hacking/domains
    urllist hacking/urls
}

dest redirector {
    domainlist redirector/domains
    urllist redirector/urls
    expressionlist  redirector/expressions
}

dest warez {
    domainlist warez/domains
    urllist warez/urls
}

dest ads {
    domainlist ads/domains
    urllist ads/urls
}

dest aggressive {
    domainlist aggressive/domains
    urllist aggressive/urls
}

dest drugs {
    domainlist drugs/domains
    urllist drugs/urls
}

dest gambling {
    domainlist gambling/domains
    urllist gambling/urls
}

dest publicite {
    domainlist publicite/domains
    urllist publicite/urls
    expressionlist  publicite/expressions
}

dest violence {
    domainlist violence/domains
    urllist violence/urls
    expressionlist  violence/expressions
}


dest banneddestination {
	domainlist banneddestination/domains
	urllist banneddestination/urls
	expressionlist 	banneddestination/expressions
}

dest advertising {
	domainlist 		advertising/domains
	urllist 		advertising/urls
	redirect http://192.168.50.2/cgi-bin/nulbanner.png
	log	/var/log/squidGuard/advertising.log
 

}

# ACLs
acl {
	privilegedsource {
		pass !advertising all
		redirect http://192.168.50.2/cgi-bin/squidGuard.cgi?clientaddr=%a&srcclass=%s&targetclass=%t&url=%u

	}
	
	bannedsource {
		pass none
		redirect http://192.168.50.2/cgi-bin/squidGuard.cgi?clientaddr=%a&srcclass=%s&targetclass=%t&url=%u

	}

	lansource {
		pass !adult !audio-video !hacking !redirector !warez !ads !aggressive !drugs !gambling !publicite !violence !banneddestination !advertising all
		redirect http://192.168.50.2/cgi-bin/squidGuard.cgi?clientaddr=%a&srcclass=%s&targetclass=%t&url=%u
	}

	
	default {
		pass none
		redirect http://192.168.50.2/cgi-bin/squidGuard.cgi?clientaddr=%a&srcclass=%s&targetclass=%t&url=%u
	}
}
 
Old 02-24-2006, 03:26 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Do you have to restart the squid service for settings to take effect? Sorry don't know much about squid or squidguard, but I've done that dozens of times and spent time frustrated only to realize I forgot to restart the service...
 
Old 02-25-2006, 11:11 PM   #3
scjvsTP
LQ Newbie
 
Registered: Sep 2005
Distribution: SuSE 10, Fedora Core 4
Posts: 15

Original Poster
Rep: Reputation: 0
I have restarted the service, I even tried rebooting the whole machine. Still no luck.
 
  


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
Bootloader Time Limit KissDaFeetOfSean Linux - Newbie 3 06-15-2005 11:54 PM
squidguard problem hariiyer Linux - Networking 1 03-04-2005 01:49 PM
squidguard problem lewus Linux - Security 2 01-04-2005 11:08 PM
time limit for select jhon Linux - Networking 1 09-08-2004 09:03 AM

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

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