Kmwan tearing down WAN during DHCP renewal — single WAN with Mullvad WireGuard (GL-MT6000)

Hello! Before I get into the technical information, I want to give some specific background information.

I do not have any technical knowledge or experience when it comes to networking. I have this vague understanding of how everything works and I know how to google, so I can figure out most things fairly quickly. I couldn't explain it, and I'll definitely run into multiple issues on my way there, but I just continue troubleshooting until I learn something. Because of all this; I find it extremely difficult to ask for help or describe an issue when I run into one. As a result, I turned to ai for help.

Im not a big fan of ai but I use it for technical purposes and always give it a specific prompt for efficiency. Because of this, the most recent ai that was helping me (claude) kept running into the same issue and eventually told me that it cannot assist and I should turn to human experts on this forum. Thank god. That's really all I've been working toward. Really just working with the ai to better understand this stuff and how to ask for help. Below is what Claude typed up. I am happy to provide any other information once I am back at the work station. I am no longer working with ai for this. Thanks in advance!

Device: GL.iNet GL-MT6000 (Flint 2) Firmware: 4.8.3 Setup: Single WAN (AT&T Fiber via passthrough gateway) + Mullvad VPN (WireGuard, all-traffic routing) + AdGuard Home

Problem: I'm experiencing twice-daily network outages at predictable 12-hour intervals. Through kernel log analysis I've confirmed the cause: kmwan is tearing down and rebuilding the WAN interface during routine DHCP lease renewal.

AT&T issues 24-hour leases. At the 12-hour renewal mark, the brief connectivity interruption causes kmwan's ping health checks to fail. With track_mode='force', kmwan then deletes and recreates the WAN node, disrupting all connected clients.

Kernel log confirms:

kmwan: Delete node:wan
add node success. iface:wan, dev:eth1

Current kmwan config:

kmwan.global.enable='1'

kmwan.global.level='medium'

kmwan.global.sensitivity='3000'

kmwan.global.mode='failover'

kmwan.wan.track_mode='force'

kmwan.wan.addr_type='4'

kmwan.wan.check='1'

What I've tried:

  • Setting kmwan.global.enable='0' — immediately killed WAN, had to re-enable

  • Setting kmwan.wan.track_mode='normal' + sensitivity='10000' — also killed WAN, track_mode change didn't persist

It's clear kmwan is actively managing WAN on this firmware, not just monitoring it. I cannot disable it or change track_mode without losing connectivity.

Questions:

  1. Is there a supported way to make kmwan tolerate the brief interruption during DHCP renewal without triggering a WAN teardown?

  2. Does Mullvad WireGuard (all-traffic routing) interfere with DHCP renewal on eth1, and if so, how is this handled correctly?

  3. Is there a way to extend or adjust the DHCP lease renewal behavior on the WAN side to make it more resilient?

I'm on a single WAN connection with no failover needs, so kmwan's multi-WAN features aren't being used. I just need the connection to survive its own DHCP renewal every 12 hours.

Any help appreciated.

Same issue here. I’ve tried several things. ChatGPT recommends removing kmwan with “opkg remove kmwan” but that seems extreme.

I think we need a fix from gl-inet team.

Yeah, do NOT do that. AI does not know how to approach this issue, especially chatgpt. So, what I’ve done so far is turn off Adguard. Also you may want to check out the multi-wan settings; I am not entirely sure why, but at some point the Detection Mode for Ethernet 1 was set to strict. I put it back to normal and connection has been stable. Although, I don’t think these fix the original issue at all and I’ll have confirmation of that around 7:30 tonight lol I would also like to turn Adguard back on

Yes of course I would not just remove kmwan. I also do not think that AdGuard has anything to do with this.

I think that the DHCP renew from the WAN side is triggering kmwan and reloading the firewall, causing our little micro outage.

kmwan should not intervene here, especially when we have configured it as what should be “off”

This is why I believe that gl-inet should get into this and fix this. Perhaps a ”kmwan OFF button”

EDIT: no problem with earlier code before they moved to kmwan.

Hi

We ran a test locally using Flint 2 + v4.8.3 with your configuration settings, but we were unable to reproduce the issue.

As you can see from the log entries below, the ping connection did not drop before or after the DHCP renewal, the WAN interface did not go DOWN and UP, and there were no relevant messages after disabling kmwan:

You might try SSHing into the router and using the following commands to completely disable kmwan to see if that helps:

/etc/init.d/kmwan stop
/etc/init.d/kmwan disable

If the issue persists, please export the device logs and send them to us via private message so we can analyze them.

How to export logs:

How to send private messages: