mirror of
https://github.com/DanielLavrushin/b4.git
synced 2026-07-09 16:00:05 +00:00
fix: add DNS hijacking and disk wear reduction tips for MikroTik container setup
This commit is contained in:
parent
d1473431d0
commit
5b0556cce9
2 changed files with 36 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue