MWAN3 routable loopback not working

The routable loopback (self) function not working in version mwan3 2.0-3.

Model Xiaomi MiWiFi Mini
Firmware Version LEDE Reboot SNAPSHOT r3472

Do you really need to control connections originated from the router itself? I think that could be done even without that, are you doing an IoT project or something? if not here are my notes on MWAN3 just in case (works very well):

same device, openwrt, routable loopback did not work as suggested by arfett. i found it strange to have 2 loopback interfaces and stopped experimenting with it.

I really need it, but after adding, some websites cannot be opened. For example:

root@LEDE-X64:~# curl -v

  • Rebuilt URL to:
  • Trying
  • Connected to ( port 443 (#0)
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
  • successfully set certificate verify locations:
  • CAfile: none
    CApath: /etc/ssl/certs
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):

No more information....

config interface 'self'
option ifname 'lo'
option proto 'static'
option ipaddr ''
option netmask ''
option gateway ''

config rule 'https'
option enable '1'
option dest_ip ''
option dest_port '443'
option proto 'tcp'
option sticky '1'
option use_policy 'balanced'

I need it to route certain DNS traffic to WAN one and certain DNS traffic to WAN two. Without it all DNS traffic goes through either WAN one or two. I downgraded to an older version (1.6-2) for the time being and waiting for a mwan3 2.0 fix.

Please fix this in the next release of LEDE/OpenWRT. Because of the broken routable loopback interface if WAN1 goes down DNS goes down with it, since without the loopback interface by default everything from router gets routed through WAN1.

I'm not the developer, nor I have knowledge on the source code of the project or time to, so I could not help with a fix. Give a try on links on (github, etc) and in more than 60 pages of people that use mwan3 on the old forum too must someone that should be able to help:

Keep up posted on that if you get help.