Search squid archive

SquidGuard multiple redirects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to set up SquidGuard here to redirect to different pages for different things. For instance, ad blocking shouldn't go to the same page that policy violations do.

I have something like the following

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

dest porn {
		domainlist porn/domains
		url porn/urls
}

src client {
		ip 10.0.0.0-10.0.255.255
}

acl {
	client {
		pass !porn
		redirect http://thishost/porn.html
	}
	client {
		pass !ads
		redirect http://thishost/ads.html
	}
	default {
		pass !in-addr all
		redirect http://thishost/policy.html
	}
}

Testing squidGuard from the command line, the porn blocking redirects correctly, but domains specified in ads do not redirect at all.

Is what I'm trying possible with squidguard or should I be looking at a different redirector?

Thanks.

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux