Hi Guys, i need help.
I’m installing AdGuard Home container on AX3.
Its only working for couple minutes, then i cant connect to internet.
If i disable the NAT rule for Adguard, its working fine, because its using my ISP DNS. Then after couple hours if i enable the NAT rule for Adguard, its working again.
But only for couple minutes, then i cant connect to internet again.
This is my config
# 2023-10-06 15:31:22 by RouterOS 7.11.2
/container mounts
add dst=/opt/adguardhome/conf name=adguard_conf src=/usb1/mounts/adguard/conf
add dst=/opt/adguardhome/work name=adguard_work src=/usb1/mounts/adguard/work
/disk
set usb1 type=hardware
/interface bridge
add name=containers
/interface ethernet
set [ find default-name=ether5 ] name=GX
/interface wifiwave2
set [ find default-name=wifi1 ] channel.band=5ghz-ac .frequency=5745 .width=\
20/40/80mhz configuration.country=India .mode=ap .ssid=xyz5 disabled=\
no mtu=1500 security.authentication-types=wpa2-psk,wpa3-psk
set [ find default-name=wifi2 ] channel.band=2ghz-n .frequency=2300-7300 \
.width=20mhz configuration.country=Indonesia .mode=ap .ssid=xyz \
disabled=no
/interface veth
add address=10.10.8.3/24 gateway=10.10.8.1 gateway6="" name=veth-adguard
/ip pool
add name=dhcp_pool5 ranges=10.10.5.2-10.10.5.254
add name=dhcp_pool6 ranges=10.10.2.2-10.10.2.254
add name=dhcp_pool7 ranges=10.10.10.2-10.10.10.254
/ip dhcp-server
add address-pool=dhcp_pool5 interface=wifi1 name=dhcp-wifi1
add address-pool=dhcp_pool6 interface=wifi2 name=dhcp-wifi2
add address-pool=dhcp_pool7 interface=ether2 name=dhcp-ether2
/container
add envlist=adguard interface=veth-adguard logging=yes mounts=\
adguard_conf,adguard_work root-dir=usb1/adguard start-on-boot=yes \
workdir=/opt/adguardhome/work
/container config
set registry-url=https://registry-1.docker.io tmpdir=usb1-part1/pull
/container envs
add key=TZ name=adguard value=Asia/Indonesia
add key=ServerIP name=adguard value=10.10.8.3
/interface bridge port
add bridge=containers interface=veth-adguard
/ip address
add address=10.10.5.1/24 interface=wifi1 network=10.10.5.0
add address=10.10.2.1/24 interface=wifi2 network=10.10.2.0
add address=10.10.8.1/24 interface=containers network=10.10.8.0
/ip dhcp-client
add interface=GX
/ip dhcp-server network
add address=10.10.2.0/24 gateway=10.10.2.1
add address=10.10.5.0/24 dns-server=10.10.8.3 gateway=10.10.5.1
/ip dns
set allow-remote-requests=yes
/ip firewall address-list
add address=10.10.2.0/24 list=IP-Lokal
add address=10.10.5.0/24 list=IP-Lokal
/ip firewall nat
add action=masquerade chain=srcnat comment=GX out-interface=GX
add action=masquerade chain=srcnat src-address=10.10.8.0/24
add action=dst-nat chain=dstnat comment=Adguard dst-port=53 \
protocol=tcp src-address=!10.10.8.0/24 to-addresses=10.10.8.3 to-ports=\
5353
add action=dst-nat chain=dstnat dst-port=53 protocol=udp \
src-address=!10.10.8.0/24 to-addresses=10.10.8.3 to-ports=5353