b4/docs/i18n/ru/docusaurus-plugin-content-docs/current/install/linux.md
Daniel Lavrushin ef8bedd247
Add Russian documentation for UDP handling, backup settings, core settings, discovery settings, geodata, payloads, security, and domain monitoring
- Created UDP documentation detailing traffic handling and filtering options.
- Added backup settings documentation for configuration backup and restoration.
- Introduced core settings documentation covering service management, packet processing, and logging.
- Added discovery settings documentation for automatic configuration detection.
- Created geodata documentation explaining GeoSite and GeoIP databases and their usage.
- Added payloads documentation for generating and managing TLS payloads for faking.
- Introduced security documentation for web interface authorization and HTTPS setup.
- Added domain monitoring documentation for automatic detection of blocked domains and recovery processes.
- Created footer and navbar localization files for Russian language support.
2026-04-18 21:43:56 +02:00

2.4 KiB
Raw Blame History

sidebar_position title
1 Linux

Linux (универсальная установка)

Подходит для любого дистрибутива: Ubuntu, Debian, Fedora, Alpine, Arch и других.

Установка

curl -fsSL https://raw.githubusercontent.com/DanielLavrushin/b4/main/install.sh | sh

Или через wget:

wget -qO- https://raw.githubusercontent.com/DanielLavrushin/b4/main/install.sh | sh

Установщик автоматически определит архитектуру, установит бинарник в /usr/local/bin и создаст конфигурацию в /etc/b4.

Для установки без интерактивных вопросов (с настройками по умолчанию):

curl -fsSL https://raw.githubusercontent.com/DanielLavrushin/b4/main/install.sh | sh -s -- --quiet

Управление сервисом

systemd (Ubuntu, Debian, Fedora и большинство дистрибутивов)

systemctl start b4
systemctl stop b4
systemctl restart b4
systemctl status b4
systemctl enable b4      # автозапуск при загрузке

Просмотр логов:

journalctl -u b4 -f

OpenRC (Alpine)

rc-service b4 start
rc-service b4 stop
rc-service b4 restart
rc-update add b4 default   # автозапуск при загрузке

Пути

Что Где
Бинарник /usr/local/bin/b4
Конфигурация /etc/b4/b4.json
Сервис (systemd) /etc/systemd/system/b4.service
Сервис (OpenRC/SysV) /etc/init.d/b4

Модули ядра

b4 использует NFQUEUE для перехвата пакетов. Нужные модули ядра обычно загружаются автоматически при запуске сервиса. Если возникают проблемы, загрузите их вручную:

modprobe nfnetlink_queue
modprobe xt_NFQUEUE
modprobe nf_conntrack

Для проверки:

lsmod | grep nfqueue

:::info LXC-контейнеры В LXC-контейнерах модули ядра должны быть загружены на хосте. В конфигурации контейнера добавьте:

lxc.cgroup2.devices.allow: c 10:200 rwm
features: nesting=1,keyctl=1

:::