Log blacklisted site in web proxy

Started by ovcrash, June 23, 2017, 02:52:04 AM

Previous topic - Next topic
Hi,

I know that OpenSense uses squid as the web proxy. I just don't know if they use squidguard for the blacklist part of the web proxy.

In squidguard you can do this:

QuoteLogging blocked access tries

It may be of interest who is accessing blocked sites. To track that down you can add a log directive to your src or dest definitions in your squidGuard.conf. If only a file name is given, the file is search in the directory specified in the logdir directive.

Logging blocked access tries
dest porn {
        domainlist porn/domains
        urllist porn/urls
        log pornaccesses
}

ref: http://www.squidguard.org/Doc/extended.html

So what this does, it that it loads a blacklist list category and just logs who access a site listed in the blacklist. It doesn't block the person from access to that site, just logs it.

Is it possible to do this in OpenSense? If so, how?

Thanks

Squid has an access log - you can do that by extracting the hostname and the IP/username from the log file and look up for a hostname in a blacklist file.

Hi,

Yes, that is the long way of doing it and it would work. I wanted more of a user friendly way of doing it, like squidguard does it.

So the quick answer is that opesense doesn't do this. I can't configure the blacklist part of opensense like that.

Maybe in the future this will be an added feature.

Thanks