OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Update script for blacklists of the squid proxy buggy
« previous next »
  • Print
Pages: [1]

Author Topic: Update script for blacklists of the squid proxy buggy  (Read 3708 times)

schnipp

  • Sr. Member
  • ****
  • Posts: 379
  • Karma: 19
    • View Profile
Update script for blacklists of the squid proxy buggy
« on: December 02, 2020, 02:12:41 pm »
I encountered problems while updating or adjusting the categories of the proxy blacklists. Currently, several categories of the following blacklists are active:

1. Shallalist (http://www.shallalist.de/Downloads/shallalist.tar.gz)
2. UT1 (https://dsi.ut-capitole.fr/blacklists/download/blacklists.tar.gz)

The python script for updating the above lists consumes 100% of cpu for a very long time (more than 30 minutes) which induced me to do some more investigation. I identified the following issues:

  • The update process is not transactional. Multiple instances of the update script can be launched the same time which results in conflicts
  • During the update process blacklists (files) are rebuilt while in use by squid :-(. I do not know whether this affects the running squid instance with its open file descriptors. But, interruption of the update process (e.g. restarting the opnsense) leaves the blacklists in an inconsistent state which prevents restarting the squid proxy (see following error message).
  • Update script contains several off-by-one errors in comparison instructions (e.g. if (len(self._url) > 8 and self._url[-7:] == '.tar.gz')

Code: [Select]
Nov  8 14:11:09 opnsense-host squid[37972]: FATAL: Bungled /usr/local/etc/squid/squid.conf line 32: acl remoteblacklist_UT2 dstdomain "/usr/local/etc/squid/acl/UT2"
Logged
OPNsense 24.7.9_1-amd64

schnipp

  • Sr. Member
  • ****
  • Posts: 379
  • Karma: 19
    • View Profile
Re: Update script for blacklists of the squid proxy buggy
« Reply #1 on: December 12, 2020, 11:49:19 am »
Opened a bug report: https://github.com/opnsense/plugins/issues/2142
Logged
OPNsense 24.7.9_1-amd64

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Update script for blacklists of the squid proxy buggy
 

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