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): https://gist.github.com/braian87b/97a186b2e11b5aa438d8fd17de0eab20

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: https://www.cnblogs.com

root@LEDE-X64:~# curl -v https://www.cnblogs.com

  • Rebuilt URL to: https://www.cnblogs.com/
  • Trying 101.37.225.58...
  • TCP_NODELAY set
  • Connected to www.cnblogs.com (101.37.225.58) 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 '192.168.2.1'
option netmask '255.255.255.255'
option gateway '192.168.2.1'

config rule 'https'
option enable '1'
option dest_ip '0.0.0.0/0'
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 https://wiki.openwrt.org/doc/howto/mwan3 (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: https://forum.openwrt.org/viewtopic.php?id=39052&p=65

Keep up posted on that if you get help.