Jump to content

Ayesh

Forum Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Ayesh

  1. Есть Keenetic Ultra с установленной entware (крутится небольшой вебсервер на nginx, плюс используется в качестве файлопомоечки по SMB. В него была воткнута флешка (Sandisk Ultra Fit) которая за полтора года полностью убилась (куча сбойных блоков, упала скорость до 10 мб/сек), сейчас поставил SSD в коробочке, настроил trim и вижу, что что-то много роутер диск мучает, оттримил диск после установки:

    root@Keenetic_Ultra:/opt$ lsblk --discard /dev/sda
    NAME   DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
    sda           0      512B       4G         0
    └─sda1        0      512B       4G         0
    root@Keenetic_Ultra:/opt$ fstrim -v /tmp/mnt/f77b3d86-231b-d601-f07b-3d86231bd601
    /tmp/mnt/f77b3d86-231b-d601-f07b-3d86231bd601: 94.6 GiB (101606969344 bytes) trimmed

    ОК, там занято немного, сбросили весь диск после записи образа. И буквально за десяток минут набегает вот столько.

    root@Keenetic_Ultra:/opt/etc/cron.weekly$ ./trim.sh
    /tmp/mnt/f77b3d86-231b-d601-f07b-3d86231bd601: 348.4 MiB (365314048 bytes) trimmed

    Как узнать, кто мучает диск, и отучить его от этой привычки. Ну не должно быть 300 мегабайт изменений на диске за это время ;)

     

  2. Нашел, в чем дело, поправил. Дело оказалось действительно в новой прошивке, пришлось поставить костылик - что-то село на внутренний 443 порт, аналогично как раньше на 80 внутреннем сидел веб-сервер админки. Изменил правило для переадресации портов - поставил 443 (внешний) на 433 внутренний, и всё заработало опять.

  3. Обновил прошивку до 3.4.1, и отвалился SSL - Firefox при попытке зайти на сайт долго думает, и показывает ошибку pr_end_of_file_error.

    Если попробовать

    root@Keenetic_Ultra:/opt/etc/nginx# curl -v https://milkov.su
    * TLSv1.3 (OUT), TLS handshake, Client hello (1):

    и на этом все. Почему-то не проходит хендшейк, порт открыт, в конфигах nginx ничего не менялось.Сертификаты лежат на месте, не удалялись, и не просрочились ещё.

    http работает нормально, перекидывывает на https:

    root@Keenetic_Ultra:/opt/etc/nginx# curl -v http://milkov.su
    > GET / HTTP/1.1
    > Host: milkov.su
    > User-Agent: curl/7.69.0
    > Accept: */*
    >
    < HTTP/1.1 301 Moved Permanently
    < Server: nginx/1.17.8
    < Date: Wed, 20 May 2020 19:30:16 GMT
    < Content-Type: text/html
    < Content-Length: 169
    < Connection: keep-alive
    < Location: https://milkov.su/
    <
    <html>
    <head><title>301 Moved Permanently</title></head>
    <body>
    <center><h1>301 Moved Permanently</h1></center>
    <hr><center>nginx/1.17.8</center>
    </body>
    </html>

    Тот же вопрос - в чем искать причину? :)

     

  4. Спасибо! Скрипт заработал корректно, вылезла проблема с некорректным ответом

     + Challenge validation has failed

    Но с этим надеюсь, смогу разобраться ;)

    PS: Вчера несколько часов искал по тексту сообщения об ошибке, по "libengines.so", в том числе и на гитхабе - ну не находился этот тред...

  5. Для эксперимента пробую поднять на свежекупленном Keenetic Ultra небольшой веб-сервер, поставил Entware, Nginx. Настроил проброс 80 и 443 портов с внешнего интерфейса на 81 и 443 роутера, прописал IP в А-запись DNS (IP статический, белый). Простой http работает прекрасно, страничку тестовую видно. 

    Проблема с https, пробую настроить по этой https://github.com/Entware/Entware/wiki/Using-Let's-Encrypt инструкции, споткнулся на запуске dehydrated - выдает ошибки. Подскажите, в чем дело?

     

    root@Keenetic_Ultra:/opt/etc/nginx# bash ./dehydrated --domain ХХХХХХ.su --cron
    # INFO: Using main config file /opt/etc/nginx/config
    2001398464:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:crypto/dso/dso_dlfcn.c:118:filename(libengines.so): libengines.so: cannot open shared object file: No such file or directory
    2001398464:error:25070067:DSO support routines:DSO_load:could not load the shared library:crypto/dso/dso_lib.c:162:
    2001398464:error:0E07506E:configuration file routines:module_load_dso:error loading dso:crypto/conf/conf_mod.c:224:module=engines, path=engines
    2001398464:error:0E076071:configuration file routines:module_run:unknown module name:crypto/conf/conf_mod.c:165:module=engines
    2007521984:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:crypto/dso/dso_dlfcn.c:118:filename(libengines.so): libengines.so: cannot open shared object file: No such file or directory
    2007521984:error:25070067:DSO support routines:DSO_load:could not load the shared library:crypto/dso/dso_lib.c:162:
    2007521984:error:0E07506E:configuration file routines:module_load_dso:error loading dso:crypto/conf/conf_mod.c:224:module=engines, path=engines
    2007521984:error:0E076071:configuration file routines:module_run:unknown module name:crypto/conf/conf_mod.c:165:module=engines
    2003077824:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:crypto/dso/dso_dlfcn.c:118:filename(libengines.so): libengines.so: cannot open shared object file: No such file or directory
    2003077824:error:25070067:DSO support routines:DSO_load:could not load the shared library:crypto/dso/dso_lib.c:162:
    2003077824:error:0E07506E:configuration file routines:module_load_dso:error loading dso:crypto/conf/conf_mod.c:224:module=engines, path=engines
    2003077824:error:0E076071:configuration file routines:module_run:unknown module name:crypto/conf/conf_mod.c:165:module=engines
    2003913408:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:crypto/dso/dso_dlfcn.c:118:filename(libengines.so): libengines.so: cannot open shared object file: No such file or directory
    2003913408:error:25070067:DSO support routines:DSO_load:could not load the shared library:crypto/dso/dso_lib.c:162:
    2003913408:error:0E07506E:configuration file routines:module_load_dso:error loading dso:crypto/conf/conf_mod.c:224:module=engines, path=engines
    2003913408:error:0E076071:configuration file routines:module_run:unknown module name:crypto/conf/conf_mod.c:165:module=engines
    Processing ХХХХХХ.su
     + Creating new directory /opt/etc/nginx/certs/ХХХХХХ.su ...
     + Signing domains...
     + Generating private key...
     + Generating signing request...
    Error configuring OpenSSL modules
    1996700352:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:crypto/dso/dso_dlfcn.c:118:filename(libengines.so): libengines.so: cannot open shared object file: No such file or directory
    1996700352:error:25070067:DSO support routines:DSO_load:could not load the shared library:crypto/dso/dso_lib.c:162:
    1996700352:error:0E07506E:configuration file routines:module_load_dso:error loading dso:crypto/conf/conf_mod.c:224:module=engines, path=engines
    1996700352:error:0E076071:configuration file routines:module_run:unknown module name:crypto/conf/conf_mod.c:165:module=engines

    Вот установленные пакеты:

    root@Keenetic_Ultra:/opt/etc/nginx# opkg list-installed
    bash - 5.0-3
    busybox - 1.31.1-1
    ca-bundle - 20190110-2
    ca-certificates - 20190110-2
    coreutils - 8.31-1
    coreutils-mktemp - 8.31-1
    curl - 7.69.0-1
    diffutils - 3.7-2
    dropbear - 2019.78-3
    entware-release - 1.0-2
    findutils - 4.7.0-1
    glib2 - 2.58.3-5
    grep - 3.4-1
    ldconfig - 2.27-9
    libattr - 2.4.48-2
    libblkid - 2.35.1-1
    libc - 2.27-9
    libcurl - 7.69.0-1
    libffi - 3.2.1-4
    libgcc - 8.3.0-9
    libiconv-full - 1.11.1-4
    libintl-full - 0.19.8.1-2
    liblua - 5.1.5-7
    libmbedtls - 2.16.5-1
    libmount - 2.35.1-1
    libncurses - 6.2-1
    libncursesw - 6.2-1
    libndm - 1.1.10-1a
    libopenssl - 1.1.1d-2
    libopenssl-conf - 1.1.1d-2
    libpcre - 8.43-2
    libpcre2 - 10.34-1
    libpthread - 2.27-9
    libreadline - 8.0-1a
    librt - 2.27-9
    libslang2 - 2.3.2-4
    libssh2 - 1.9.0-2
    libssp - 8.3.0-9
    libstdcpp - 8.3.0-9
    libuuid - 2.35.1-1
    libxml2 - 2.9.10-1
    locales - 2.27-9
    mc - 4.8.23-2
    ndmq - 1.0.2-5a
    nginx - 1.17.8-1
    openssl-util - 1.1.1d-2
    opkg - 2019-06-14-dcbc142e-2
    opt-ndmsv2 - 1.0-12
    php7 - 7.4.3-1
    php7-mod-openssl - 7.4.3-1
    poorbox - 1.31.1-2
    terminfo - 6.2-1
    zlib - 1.2.11-3
    zoneinfo-asia - 2019c-1
    zoneinfo-europe - 2019c-1

     

    • Thanks 1
×
×
  • Create New...