openwrt / openwrt/packages

mwan3: default route src ip should be preferred over interface ip when get_src_ip

Open
#29,055 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Package Name

mwan3

Maintainer

@feckert

OpenWrt Version

23.05.4

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce
  1. Set up a custom "wan" interface I with its IP being A;
  2. Add a route with a src ip being B different to the interface IP A (e.g. ip route add default via X src B dev I metric 1000);
  3. Add the interface I to mwan3;
  4. Navigate to the mwan3 dianostics page (/cgi-bin/luci/admin/status/mwan3/diagnostics);
  5. Select the interface I and run "ping track ip";
Actual Behaviour

The interface IP A is used as SRCIP for ping. And due to some configuration choices, ping sourcing from the interface IP won't work in my case.

Expected behaviour:

The src ip B listed in the default route is expected to be used as SRCIP.

Confirmation Checklist

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.

Research direction

Start at the mwan3 diagnostics page entry point (/cgi-bin/luci/admin/status/mwan3/diagnostics) and trace the “ping track ip” handling for the selected interface. Compare how the interface IP A and the default route source IP B are selected; done means ping uses B as SRCIP when the route provides it.

Written by the indexing model from the issue text.

Assessment

Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.