OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Log blacklisted site in web proxy
« previous next »
  • Print
Pages: [1]

Author Topic: Log blacklisted site in web proxy  (Read 3761 times)

ovcrash

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Log blacklisted site in web proxy
« on: June 23, 2017, 02:52:04 am »
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:

Quote
Logging 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
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Log blacklisted site in web proxy
« Reply #1 on: June 23, 2017, 10:28:41 am »
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.
Logged

ovcrash

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Log blacklisted site in web proxy
« Reply #2 on: June 23, 2017, 02:22:58 pm »
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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Log blacklisted site in web proxy
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2