Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - z1p

#1
Quote from: AdSchellevis on January 31, 2023, 09:58:04 PM
Likely the file downloaded for geoip in Firewall->Aliases->Geoip settings isn't a valid database. If you remove the Url or change it for a valid geoip target, the error should go away.

I will push a patch for future versions to send the message to the log and prevent a crash in these cases.

Best regards,

Ad

Thanks for the tip. Its fixed now.
#2
Running OPNsense 22.7.11_1-amd64.
Trying to get aliases to work but they're not populating hosts (e.g. twitch.tv).
Ran update_tables.py and got the output:


root@opnsense:~ # python3 /usr/local/opnsense/scripts/filter/update_tables.py
Traceback (most recent call last):
  File "/usr/local/opnsense/scripts/filter/update_tables.py", line 130, in <module>
    geoip.download_geolite()
  File "/usr/local/opnsense/scripts/filter/lib/geoip.py", line 71, in download_geolite
    with zipfile.ZipFile(tmp_stream, mode='r', compression=zipfile.ZIP_DEFLATED) as zf:
  File "/usr/local/lib/python3.9/zipfile.py", line 1266, in __init__
    self._RealGetContents()
  File "/usr/local/lib/python3.9/zipfile.py", line 1333, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file


Any help is appreciated.
#3
Quote from: Greelan on January 03, 2023, 12:13:06 AM
A script has been added to OPNsense that you can run with a cron job. Go to the cron settings and you can see the script in the dropdown

It basically tests for a stale WG connection on whatever interval you set and restarts WG if one is detected

Found the script you mentioned. I'll check it.

Thanks so much and happy new year Greelan!
#4
Hello there! Hope your fine! Can ask you if you came with a solution for this? Thanks