diff --git a/docs/docs/install/mikrotik.md b/docs/docs/install/mikrotik.md index 23f41635..79fd5f5b 100644 --- a/docs/docs/install/mikrotik.md +++ b/docs/docs/install/mikrotik.md @@ -114,6 +114,16 @@ After the image has been pulled: /container start [find tag~"b4"] ``` +:::info DNS hijacking +If your ISP intercepts DNS (port 53 redirection), public resolvers inside the container will not help. Set up DoH on MikroTik and point the container at the bridge gateway instead of public DNS: + +```routeros +/ip dns set use-doh-server=https://cloudflare-dns.com/dns-query verify-doh-cert=yes +``` + +Then change the container DNS to `dns=192.168.210.1` (the bridge gateway). +::: + ## Step 7: Add clients Add devices to the `b4users` address list: @@ -127,6 +137,14 @@ Add devices to the `b4users` address list: After the container starts: `http://192.168.210.10:7000` +:::tip Reduce disk wear +USB flash and SD cards have a limited number of write cycles. Move b4 logs to RAM in the web interface: + +**Settings -> Logging Configuration -> Log file path:** `/tmp/log/b4/errors.log` + +Logs are lost on reboot, but storage lasts longer. +::: + ## Update ```routeros diff --git a/docs/i18n/ru/docusaurus-plugin-content-docs/current/install/mikrotik.md b/docs/i18n/ru/docusaurus-plugin-content-docs/current/install/mikrotik.md index 756dc975..dbe174fd 100644 --- a/docs/i18n/ru/docusaurus-plugin-content-docs/current/install/mikrotik.md +++ b/docs/i18n/ru/docusaurus-plugin-content-docs/current/install/mikrotik.md @@ -115,6 +115,16 @@ FastTrack обходит правила mangle. Ограничьте его не /container start [find tag~"b4"] ``` +:::info Перехват DNS +Если провайдер перехватывает DNS (редирект 53 порта), публичные резолверы внутри контейнера не помогут. Настройте DoH на MikroTik и укажите в контейнере шлюз моста вместо публичного DNS: + +```routeros +/ip dns set use-doh-server=https://cloudflare-dns.com/dns-query verify-doh-cert=yes +``` + +Затем измените DNS контейнера на `dns=192.168.210.1` (шлюз моста). +::: + ## Шаг 7: Добавление клиентов Добавьте устройства в адресный список `b4users`: @@ -128,6 +138,14 @@ FastTrack обходит правила mangle. Ограничьте его не После запуска контейнера: `http://192.168.210.10:7000` +:::tip Снижение износа диска +USB-флешки и SD-карты имеют ограниченное число циклов записи. Перенесите логи b4 в RAM через веб-интерфейс: + +**Settings -> Logging Configuration -> Log file path:** `/tmp/log/b4/errors.log` + +Логи теряются при перезагрузке, но накопитель прослужит дольше. +::: + ## Обновление ```routeros