wiktorbgu/b4-mikrotik

By wiktorbgu

Updated 8 days ago

B4 for Mikrotik!

Image
Networking
Security
3

5.5K

wiktorbgu/b4-mikrotik repository overview

Supported only on Mikrotik ROS >= 7.21

Architecture only ARM64 and AMD64

Chat https://t.me/it_network_people

Mikrotik settings

/interface/bridge add name=Bridge-Docker port-cost-mode=short
/ip/address add address=192.168.254.1/24 interface=Bridge-Docker network=192.168.254.0
/interface/veth add address=192.168.254.12/24 gateway=192.168.254.1 name=B4
/interface/bridge/port add bridge=Bridge-Docker interface=B4

/container add hostname=B4 interface=B4 mount=/usb1/docker_configs/b4:/etc/b4:rw name=b4-mikrotik remote-image=wiktorbgu/b4-mikrotik restart-interval=10s restart-max-count=50 restart-policy=always root-dir=/usb1/docker/b4-mikrotik start-on-boot=yes tmpfs=/tmp:100.0MiB:01777 dns=1.1.1.1,8.8.8.8,9.9.9.9

# after the container is installed and started, run
/ip dns set use-doh-server="" servers=192.168.254.12

To avoid DNS request interception and modification, it is recommended to configure DNS 192.168.254.11 in the B4 container settings. This address points to the DNSProxy container (https://hub.docker.com/r/wiktorbgu/dnsproxy-mikrotik), which forwards DNS queries to the configured DoH servers

Start container and open web panel:

http://192.168.254.12:7000/

  • Settings - Feature Flags -> Enable NAT Masquerade
  • Settings - Web Server -> Change language

=> SAVE CHANGES

Docs https://daniellavrushin.github.io/b4/

Others useful parameters

Settings - Logging Configuration ->
change path log file to RAM for minimal writes to disk
set to /tmp/log/b4/errors.log

Settings - Feature Flags ->
Firewall Monitor Interval in seconds (default 10s)
set to 0

группа с примерами конфигов
https://t.me/byebyebigbro

GitHub

Dоnate ♥

Tag summary

Content type

Image

Digest

sha256:c5b6e139f

Size

19 MB

Last updated

8 days ago

docker pull wiktorbgu/b4-mikrotik:v1.73.0