Hi,Using OPNsense 16.7.8-amd64.I am having a problem with the Remote access control lists not being fetched or updated. It used to work before and the last one succesfully fetched was on Oct 31 15:29 CET.I use the list from ftp://ftp.ut-capitole.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz. I also added the example from the documentation (http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml) but this doesn't work either. After I press Download and Apply, it returns quickly (used to take a long time), and in /var/log/system.log I see:Nov 18 17:43:49 OPNsense configd.py: [c7615826-515d-443d-8db3-66eec2936dc3] generate template OPNsense/ProxyNov 18 17:43:50 OPNsense configd.py: generate template container OPNsense/ProxyNov 18 17:43:52 OPNsense configd.py: [6056e2ce-722a-4966-9922-922434741223] download and reload proxy ACLs from remote locationsNov 18 17:43:52 OPNsense configd.py: [6056e2ce-722a-4966-9922-922434741223] returned exit status 1So it returns immediately without doing any work. I am able te retrieve both lists manually from the firewall using curl, so they are reachable.Any ideas?Thanks,Ben
opnsense-patch c3e84685
Nov 22 18:40:52 OPNsense configd.py: [b2cf595d-8d13-43a5-869e-b33dddac1949] generate template OPNsense/ProxyNov 22 18:40:53 OPNsense configd.py: generate template container OPNsense/ProxyNov 22 18:40:55 OPNsense configd.py: [73e319a1-7595-4240-be5d-c671820f6ab3] download and reload proxy ACLs from remote locationsNov 22 18:42:57 OPNsense configd[6698]: Timeout (120) executing : proxy fetchacls
Nov 22 18:48:52 OPNsense configd.py: [10b51670-e81f-426e-8a60-ebd7eaa3192a] request proxy statusNov 22 18:48:52 OPNsense configd.py: [9f07c783-7099-4f49-87c1-b7fc14f9a298] generate template OPNsense/ProxyNov 22 18:48:53 OPNsense configd.py: generate template container OPNsense/ProxyNov 22 18:48:55 OPNsense configd.py: [f651e852-da92-4dd7-a376-2267b28ece11] reconfigure proxyNov 22 18:48:59 OPNsense squid: Bungled /usr/local/etc/squid/squid.conf line 38: acl remoteblacklist_UT1 dstdomain "/usr/local/etc/squid/acl/UT1"Nov 22 18:48:59 OPNsense configd.py: [f651e852-da92-4dd7-a376-2267b28ece11] returned exit status 1
acl remoteblacklist_UT1 dstdomain "/usr/local/etc/squid/acl/UT1"
root@OPNsense:/usr/local/etc/squid # ll acl/total 27942-rw-r----- 1 root squid 28580995 Nov 22 18:43 UT1-rw-r----- 1 root squid 1444 Nov 22 18:42 UT1.index-rw-r----- 1 root squid 991 Nov 22 18:43 yoyoads-rw-r----- 1 root squid 2 Nov 22 18:43 yoyoads.index
http_access deny remoteblacklist_UT1
Nov 23 13:27:15 OPNsense configd.py: [8ed9d971-89dc-4d69-bb59-c99578afaccb] request proxy statusNov 23 13:27:31 OPNsense configd.py: [776d1217-5e8f-4f66-8e3d-8aca0b8c8744] generate template OPNsense/ProxyNov 23 13:27:32 OPNsense configd.py: generate template container OPNsense/ProxyNov 23 13:27:34 OPNsense configd.py: [c7a06f6b-5253-4251-af1a-6740ef916ed5] download proxy ACLs from remote locationsNov 23 13:29:36 OPNsense configd[18360]: Timeout (120) executing : proxy downloadacls
Nov 23 13:30:39 OPNsense configd.py: unable to sendback response [OK ] for [proxy][downloadacls][None] {c7a06f6b-5253-4251-af1a-6740ef916ed5}, message was Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 202, in run self.connection.sendall('%s\n' % result) File "/usr/local/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) error: [Errno 32] Broken pipe
Nov 23 13:33:07 OPNsense configd.py: [61d38b33-64d8-410d-86a4-dd8f13397041] request proxy statusNov 23 13:33:07 OPNsense configd.py: [18e041fb-8f75-41b1-af92-f5b6f8c2563c] generate template OPNsense/ProxyNov 23 13:33:08 OPNsense configd.py: generate template container OPNsense/ProxyNov 23 13:33:10 OPNsense configd.py: [63646e00-3382-4624-89c9-dfcc8f63fbd6] reconfigure proxy
/usr/local/opnsense/scripts/proxy/fetchACLs.py
You can easily trigger the download from the command line to see if something strange happens, but I guess your download/process just takes more the 120 seconds (which is the timeout from the gui to wait for a response).
Which is easier said than done. Fetching the first time reveals categories in archives, this must be presented to the user immediately.Easy workaround: The file could be fetched and mirrored from another server, especially somewhere fast.You can even use OPNsense for that, download from script, move file to /usr/local/www/acls and point to https://127.0.0.1/acls/file