Jump to content
XPEnology Community

Miren

Rookie
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Miren

  1. Good people I found this script to add and update the firewall IP lists.
    We can add the lists found on the internet and add them.
    To me it has not worked for me because I do not know if I do wrong PiP installation, the script does not work or I do not install it correctly. (I have tried with DSM 6 and 7 and I am not good in linux)
    I leave the web where I found it in case someone wants to try it and see if it works:
    https://github.com/kichetof/AutoBlockIPList

     

    I usually get this error:
    File "/volume1/scripts/AutoBlockIPList.py", line 32
    verbose(f "Unable to connect to {link}")

    File "/volume1/scripts/AutoBlockIPList.py", line 41
    data = [get_ip_local(f).split("\n") for f in local] + [get_ip_remote(s).split("\n") for s in external]
    ^
    IndentationError: expected an indented block
    sh: line 3: https://blacklist.3coresec.net/lists/all.txt: No such file or directory

     

    Sometimes the line error changes

     

    By the way sorry for my english as I am using an online translator.

     

    • Like 1
  2. Buenas gente:

     

    He encontrado este script que autoactualiza las lista IP del firewall desde la pagina web que nosotros introduzcamos, lo he probado pero no se puedo asegurar si funciona ya que en el reporte me sale este error:

     

    File "/volume1/scripts/AutoBlockIPList.py", line 32
    verbose(f"Unable to connect to {link}")

    File "/volume1/scripts/AutoBlockIPList.py", line 41
    data = [get_ip_local(f).split("\n") for f in local] + [get_ip_remote(s).split("\n") for s in external]
    ^
    IndentationError: expected an indented block
    sh: line 3: https://blacklist.3coresec.net/lists/all.txt: No such file or directory

     

    Alguien sabe como solucionarlo?

    La pagina del autor es: https://github.com/kichetof/AutoBlockIPList

     

    Gracias.

×
×
  • Create New...