Skip to content

Instantly share code, notes, and snippets.

@gromov-io
Created January 17, 2026 08:29
Show Gist options
  • Select an option

  • Save gromov-io/6b7e1c8ef4c6304fb555bbc7a379d7bb to your computer and use it in GitHub Desktop.

Select an option

Save gromov-io/6b7e1c8ef4c6304fb555bbc7a379d7bb to your computer and use it in GitHub Desktop.
routes/domains-ru.rsc
# Удаляем старые правила перед импортом
/ip dns static remove [find where comment~"VIA-RU"]
# Добавляем новые правила
# Каждый домен автоматически резолвится и IP попадает в address-list=via-ru
# address-list=via-ru → маршрут через WG-RU (mangle rule 0)
/ip dns static
add type=FWD forward-to=8.8.8.8 regexp=".*youtube\\.com" address-list=via-ru comment="VIA-RU"
add type=FWD forward-to=8.8.8.8 regexp=".*googlevideo\\.com" address-list=via-ru comment="VIA-RU"
add type=FWD forward-to=8.8.8.8 regexp=".*instagram\\.com" address-list=via-ru comment="VIA-RU"
add type=FWD forward-to=8.8.8.8 regexp=".*twitter\\.com" address-list=via-ru comment="VIA-RU"
add type=FWD forward-to=8.8.8.8 regexp=".*spotify\\.com" address-list=via-ru comment="VIA-RU"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment