OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 16.7 Legacy Series »
  • Blacklist Download not working
« previous next »
  • Print
Pages: [1]

Author Topic: Blacklist Download not working  (Read 7374 times)

tillsense

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 48
    • View Profile
Blacklist Download not working
« on: July 28, 2016, 09:18:51 am »
Hi,
example...(squid.conf)

# ACL - Remote fetched Blacklist (remoteblacklist)
acl remoteblacklist_yoyoads dstdomain "/usr/local/etc/squid/acl/yoyoads"

but "/usr/local/etc/squid/acl/yoyoads" no exists

url "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml" is ok

till
Logged

tillsense

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 48
    • View Profile
Re: Blacklist Download not working
« Reply #1 on: July 30, 2016, 09:24:25 pm »

I believe a connection with the manual edit of squid.user.post_auth.conf . (Parent proxy ; )
system.log says exit status 1 when acl download .
without ......post_auth.conf  the file ( acl ) is created
but it can be downloaded via browser with squid.user.post_auth.conf !?

cheers till
Logged

Julien

  • Hero Member
  • *****
  • Posts: 651
  • Karma: 32
    • View Profile
Re: Blacklist Download not working
« Reply #2 on: July 31, 2016, 02:37:15 pm »
just to troubleshoot, have you tried a different blacklist ?
Logged
An intelligent man is sometimes forced to be drunk to spend time with his fool.

tillsense

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 48
    • View Profile
Re: Blacklist Download not working
« Reply #3 on: August 02, 2016, 04:26:35 pm »
the download and / or ssl generally seem to have a problem . here are few system logs :

Code: [Select]
root: Could not download https://pkg.opnsense.org/bogons/fullbogons-ipv4.txt
root: Could not extract fullbogons-ipv4.txt
root: Could not download https://pkg.opnsense.org/bogons/fullbogons-ipv6.txt
root: Could not extract fullbogons-ipv6.txt


### manual curl
curl https://pkg.opnsense.org/bogons/fullbogons-ipv4.txt
curl: (35) Unknown SSL protocol error in connection to pkg.opnsense.org:443


### and another
 lighttpd[28925]: (connections.c.1550) SSL: 1 -1 error:140E0197:SSL routines:SSL_shutdown:shutdown while in init

Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Blacklist Download not working
« Reply #4 on: August 02, 2016, 04:37:18 pm »
It looks like something is interfering with the SSL connection, likely a proxy with self-signed certificates.

Can you run the following on the console and see what happens?

# fetch https://pkg.opnsense.org/bogons/fullbogons-ipv4.txt


Cheers,
Franco
Logged

tillsense

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 48
    • View Profile
Re: Blacklist Download not working
« Reply #5 on: August 02, 2016, 04:44:02 pm »
Code: [Select]
# fetch https://pkg.opnsense.org/bogons/fullbogons-ipv4.txt
1952873560584:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:782:
fetch: https://pkg.opnsense.org/bogons/fullbogons-ipv4.txt: Authentication error
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Blacklist Download not working
« Reply #6 on: August 02, 2016, 04:57:12 pm »
Our server does not run SSLv2/SSLv3 at all, so you're very likely running into a proxy.

https://www.ssllabs.com/ssltest/analyze.html?d=pkg.opnsense.org

Try to dump the server certificate:

# echo | openssl s_client -host pkg.opnsense.org -port 443


Cheers,
Franco
Logged

tillsense

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 48
    • View Profile
Re: Blacklist Download not working
« Reply #7 on: August 03, 2016, 09:02:22 am »
ok

Quote

echo | openssl s_client -host pkg.opnsense.org -port 443
CONNECTED(00000003)
3206976702984:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s23_lib.c:177:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 291 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : 0000
    Session-ID:
    Session-ID-ctx:
    Master-Key:
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1470207206
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---


cheers till
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Blacklist Download not working
« Reply #8 on: August 03, 2016, 09:33:20 am »
Er, ok... Maybe the firewall is blocking SSL itself or the proxy is set up in an incorrect way? I have no clue as this is not something we can change from our end.


Cheers,
Franco
Logged

tillsense

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 48
    • View Profile
Re: Blacklist Download not working
« Reply #9 on: August 08, 2016, 06:59:41 pm »
hi franco,

have the firewall turned off times (opnsense) and me the logs from parent proxy looked unfortunately without instructions. also with the set of $ HTTP_PROXY on opnsense switch between itself and parent did not change the behavior. but updates go.

cheers till
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 16.7 Legacy Series »
  • Blacklist Download not working
 

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