openwrt / openwrt/packages

mwan3: interface cannot detect link problems after mwan ifdown/up

Open
#18,087 2 comments 0 reactions 1 assignee View on GitHub

@feckert is already working on this.

Since Mar 18, 2022.

release/21.02 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @feckert
Environment: openwrt 21.02.1 mwan3 2.10.13-1

Description:

I have two interfaces, both with IPv4 and IPv6 configurations (wan4a, wan4b, wan6a, wan6b). Sometimes the tracker stucks at the "connecting" or "online" state, even if all trackers are down. I could trigger that behavior with:

# mwan3 ifdown wan6b
# mwan3 ifup wan6b
<externally block internet traffic through wan6b>

After that, wan4b was detected as down but not wan6b. What I see is that /var/run/mwan3track/wan6b/STATUS is always "connecting" even with all /var/run/mwan3track/wan6b/TRACK_* marked as "down". LOST, ONLINE, TIME and TURN are still increasing. SCORE is zero.

It does not matter if it is an IPv4 or IPv6 interface. Restarting mwan3 reverts the issue.

I have reproduced it in a virtual env (gns3). It is easy to test or debug if needed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.