Good afternoon It's been quite some time and I've been looking at this topic. And to answer the last question - yes! I managed to get this scheme to work with three containers. But over time, something changed inside the containers, and right now I can’t guarantee that everything will work the first time without trial. On the cheaper aX2, I even managed to launch the installation of containers through a script, but after I did not have access to this device for 1.5 months, it turned out that the scheme stopped working, and there is no way yet to find out what the reason is. Perhaps the container assemblies themselves have been updated, and these settings are no longer suitable. On a home aX3 with containers installed on USB-Flash, the scheme is currently working. The settings are: Code: Select all /interface bridge add name=Dockers port-cost-mode=short /ip address add address=10.6.0.1/24 interface=Dockers network=10.6.0.0 /interface veth add address=10.6.0.2/24 gateway=10.6.0.1 gateway6="" name=VETH1-adguard /interface veth add address=10.6.0.3/24 gateway=10.6.0.1 gateway6="" name=VETH2-xray /interface veth add address=10.6.0.4/24 gateway=10.6.0.1 gateway6="" name=VETH3-tun /interface bridge port add bridge=Dockers interface=VETH1-adguard /interface bridge port add bridge=Dockers interface=VETH2-xray /interface bridge port add bridge=Dockers interface=VETH3-tun /container mounts add dst=/opt/adguardhome/work name=adguard_workdir src=/usb1-part1/Conf/adguardwork /container mounts add dst=/opt/adguardhome/conf name=adguard_confdir src=/usb1-part1/Conf/adguardconf /container envs add key=TZ name=adguard_envs value=Europe/Moscow /container add envlist=adguard_envs interface=VETH1-adguard mounts=adguard_workdir,adguard_confdir root-dir=usb1-part1/Containers/adguard start-on-boot=yes workdir=/opt/adguardhome/work /container add dns=10.6.0.2 interface=VETH2-xray root-dir=usb1-part1/Containers/xray-core start-on-boot=yes workdir=/root /container add dns=10.6.0.2 interface=VETH3-tun root-dir=usb1-part1/Containers/tun2socks start-on-boot=yes https://forum.mikrotik.com/viewtopic.php?t=203410 /ip dhcp-server network add address=10.10.12.0/24 dns-server=10.6.0.2 gateway=10.10.12.1 netmask=24 /routing table add disabled=no fib name=proxy_mark /ip route add comment="Acceess to WWW through Proxy" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.6.0.4 pref-src="" routing-table=proxy_mark scope=30 suppress-hw-offload=yes target-scope=10 /ip firewall mangle add action=mark-routing chain=prerouting dst-address-list=route_proxy log-prefix=markrou_ new-routing-mark=proxy_mark passthrough=yes /ip firewall mangle add action=change-mss chain=forward new-mss=clamp-to-pmtu out-interface=Dockers passthrough=yes protocol=tcp tcp-flags=syn /ip firewall nat add action=dst-nat chain=dstnat comment="TCP 53 Redirect DNS requests to AdguardHome" dst-port=53 in-interface=Bridge protocol=tcp to-addresses=10.6.0.2 /ip firewall nat add action=dst-nat chain=dstnat comment="UDP 53 Redirect DNS requests to AdguardHome" dst-port=53 in-interface=Bridge protocol=udp to-addresses=10.6.0.2 /ip firewall nat add action=masquerade chain=srcnat comment="WWW through VPN Proxy" dst-address-list=route_proxy out-interface=Dockers /ip firewall nat add action=masquerade chain=srcnat comment="Containers through NAT" out-interface-list=WANs src-address=10.6.0.0/24 In the containers themselves, as I wrote earlier, it is necessary to make changes to the files: Xray-core (acts as a client to a VPS server with 3X-UI installed) - after launching the container, the config file is installed and edited.json (connection settings are set). Tun2Socks, after installation and activation. We stop the container and replace it Entryppoint.sh Code: Select all #!/bin/sh ip tuntap add mode tun dev tun0 ip addr add 198.18.0.1/15 dev tun0 ip link set dev tun0 up ip route del default ip route add default via 198.18.0.1 dev tun0 metric 1 ip route add default via 10.6.0.1 dev eth0 metric 10 tun2socks -device tun0 -proxy socks5://10.6.0.3:30804 -interface eth0 After launching the container, all addresses included in the proxy_mark list go through the VLess proxy tunnel. _____________ In Russian Добрый день! Прошло довольно много времени и как просматривал эту тему. И отвечая на последний вопрос - да! Мне удалось заставить работать эту схему с тремя контейнерами. Но вот по прошествии времени что-то внутри контейнеров поменялось, и прямо сейчас не могу гарантировать, что все заработает с первого раза без разбирательств. На более дешёвом aX2 даже получилось запускать установку контейнеров через скрипт, но после того как я 1,5 месяца не имел доступа к этому устройству, выяснилось что схема перестала работать, и пока нет возможности выяснить в чем причина. Возможно обновились сами сборки контейнеров, и данные настройки уже не подходят. На домашнем aX3 с установкой контейнеров на USB-Flash, в данный момент схема работает. Настройки такие: В самих контейнерах как и ранее писал, необходимо внести изменения в файлы: Xray-core (выполняет роль клиента к VPS-серверу с установленным 3X-UI) - после запуска контейнер останавливается и редактируется файл config.json (задаются настройки подключения). Tun2Socks, после установки и включения. Останавливаем контейнер и подменяем Entryppoint.sh. После запуска контейнера все адреса включённые в список proxy_mark ходят через Vless прокси туннель.