Skip to content

Instantly share code, notes, and snippets.

View xdenb43's full-sized avatar

Denis Bazhin xdenb43

  • Nizhniy Novgorod
View GitHub Profile
@xdenb43
xdenb43 / Mikrotik inform about new RouterOS to Telegram.md
Last active October 9, 2025 18:25
Mikrotik inform about new RouterOS to Telegram.md

checkOSUpdate | by xdenb43

Specs

  • Created to inform about available updates via telegram
  • Executed every 24h
  • automatically added to scheduler with the first manual execution
  • Posts info message to log if update is available

[!IMPORTANT]

@xdenb43
xdenb43 / Mikrotik forward selected log events to Telegram bot.md
Last active October 9, 2025 18:09
Mikrotik forward selected log events to Telegram bot

logEventTGInformer | by xdenb43
Sends log events filtered by condition(s) to specific topic of telegram super-group

Specs

  • Created to post messages to dedicated topic of the specified supergroup telegram instance
  • Default filtering conditions: topics~"(error|critical|netwatch)" || message~"([fF]ailure|router rebooted|checkOSUpdate)"
  • NO time-format related troubles, mikrotik internal function totime used
  • Executes every 60 seconds
  • Uses limit to 4096 message symbols
@xdenb43
xdenb43 / MikroTik AdGuard Home container installation.md
Last active October 9, 2025 17:27 — forked from kangarie/mikrotik_container_adguardhome.txt
MikroTik AdGuard Home container installation

--> adguard home to container | by @xdenb43
--> tested on hap ax3/ROS 7.17.2+

Important

defconf network 192.168.88.1/24
docker network 192.168.254.1/24

Install AdGuard Home (AGH) to MikroTik using container

Prerequisites

@xdenb43
xdenb43 / Mikrotik WireGuard anti DPI.md
Last active November 3, 2025 04:00 — forked from wiktorbgu/Mikrotik-WireGuard-anti-DPI.md
Mikrotik WireGuard anti DPI

Подправил скрипт @wiktorbgu:

Note

  • Скрипт добавляется по пути в меню System - Scripts с именем wg-antidpi, те можно пнуть скрипт когда угодно
  • Сам прописывается в System - Scheduler при первом ручном запуске
  • учтены правки из чата antifilter.network
# wg-antipdi traffic flood | by antifilter tg chat
# Enable traffic-gen: /system device-mode update traffic-gen=yes
@xdenb43
xdenb43 / Mikrotik NTP failover configuration.md
Last active April 8, 2025 18:26
Mikrotik NTP failover configuration

В связи с гонкой за недружественными ресурсами слишком часто стали страдать ресурсы дружественные.

NTP Client failover:

  • NTP сервер name resolution через DNS FWD, так как если настроен DoH и он недоступен, то ффсё

FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP
To set the NTP server using its FQDN. The domain name will be resolved each time an NTP request is sent. Router has to have /ip/dns configured.