Mwan3 and how to ping using different interfaces from lan

Hello all :slight_smile:

i`m currently using mwan3 with fail-over working nice. wan1 is default, wan2 is the failover

i want that when i ping 8.8.4.4 from any lan device to use the failover wan2,
this way i can plot on my home assistant instance two graphs, one for 8.8.8.8 or any other dns server to check the rtt from my wan1 and another graph with the ping times from wan2, pinging 8.8.4.4.

Using luci i created a rule, put it above all others, and set the destiny address to 8.8.4.4/32,selected the policy regarding wan2only, sticky disabled, and protocol is set to icmp.

but the rule is not working, i know because i can ping straight from the router through ssh using ping -I and the ping time are different.

any ideas how to achieve this ?

Thank you all !!

Run mwan3 rules from the CLI and verify that:

  1. The rule exists.
  2. It is really located above the other rules.
  3. The counters to the left of the rule show non-zero values.
1 Like

Thank you for your time!

This is the output:

root@Router-Rush:~# mwan3 rules
Active ipv4 user rules:
Active ipv6 user rules:
    0     0 S https  tcp      *      *       ::/0                 ::/0
       multiport dports 443
 1636  585K - fail_over  all      *      *       ::/0                 ::/0

I cant see my rule, and looks like only ipv6 rules are working..

Yes, indeed.
Make sure you don't use long names (more than 15 characters) for policies and rules.

1 Like

Thank you sir.

I used shorter names and now the rules appeared, the counter increased and the pings used the interface i want :slight_smile:

Sorry for the silly mistake.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.