Hello,
I've tried to configure a WAN failover system by using MWAN3, but when MWAN3 is installed on the system, (from this point) there is no (more) communication over the WAN port. The eth1 device (WAN port) not even get a dynamic address by DHCP. And when I've set a static ip on the eth1 device, other clients are not reachable by ping.
Removing MWAN3 from the system solves the problem. From this point the WAN port works normal.
When I'am using VLAN on 2 of the 4 switch ports, all works fine. Then WMAN3 is able to communicate over these ports (via VLAN).
I'am using 22.03.1.
Has anybody tried to use MWAN3 on a FritzBox 4040?
Interface status:
interface WAN1 is offline and tracking is paused
interface WAN2 is online 00h:00m:55s, uptime 00h:00m:57s and tracking is active
Current ipv4 policies:
failover:
WAN2 (100%)
Current ipv6 policies:
failover:
unreachable
Directly connected ipv4 networks:
192.168.1.255
192.168.1.1
192.168.1.0/24
192.168.221.0
127.0.0.0/8
192.168.1.0
192.168.221.207
127.0.0.1
224.0.0.0/3
192.168.221.255
127.255.255.255
192.168.221.0/24
127.0.0.0
Directly connected ipv6 networks:
Active ipv4 user rules:
44 3854 - failover all -- * * 0.0.0.0/0 0.0.0.0/0
Active ipv6 user rules:
Software-Version
-------------------------------------------------
OpenWrt - 22.03.1
Output of "ip -4 a show"
-------------------------------------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
6: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
7: eth0.221@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
inet 192.168.221.207/24 brd 192.168.221.255 scope global eth0.221
valid_lft forever preferred_lft forever
Output of "ip -4 route show"
-------------------------------------------------
default via 192.168.221.254 dev eth0.221 proto static src 192.168.221.207 metric 20
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
192.168.221.0/24 dev eth0.221 proto static scope link metric 20
Output of "ip -4 rule show"
-------------------------------------------------
0: from all lookup local
1002: from all iif eth0.221 lookup 2
2002: from all fwmark 0x200/0x3f00 lookup 2
2061: from all fwmark 0x3d00/0x3f00 blackhole
2062: from all fwmark 0x3e00/0x3f00 unreachable
3002: from all fwmark 0x200/0x3f00 unreachable
32766: from all lookup main
32767: from all lookup default
Output of "ip -4 route list table 1-250"
-------------------------------------------------
Routing table 2:
default via 192.168.221.254 dev eth0.221 proto static src 192.168.221.207 metric 20
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
192.168.221.0/24 dev eth0.221 proto static scope link metric 20
Output of "iptables -t mangle -w -L -v -n"
-------------------------------------------------
Chain PREROUTING (policy ACCEPT 2317 packets, 679K bytes)
pkts bytes target prot opt in out source destination
2351 685K mwan3_hook all -- * * 0.0.0.0/0 0.0.0.0/0
Chain INPUT (policy ACCEPT 645 packets, 88244 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 895 packets, 414K bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 640 packets, 222K bytes)
pkts bytes target prot opt in out source destination
648 223K mwan3_hook all -- * * 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 1536 packets, 636K bytes)
pkts bytes target prot opt in out source destination
Chain mwan3_connected_ipv4 (2 references)
pkts bytes target prot opt in out source destination
769 370K MARK all -- * * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_connected_ipv4 dst MARK or 0x3f00
Chain mwan3_custom_ipv4 (2 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_custom_ipv4 dst MARK or 0x3f00
Chain mwan3_dynamic_ipv4 (2 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_dynamic_ipv4 dst MARK or 0x3f00
Chain mwan3_hook (2 references)
pkts bytes target prot opt in out source destination
2868 897K CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 CONNMARK restore mask 0x3f00
971 197K mwan3_ifaces_in all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
337 72103 mwan3_custom_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
337 72103 mwan3_connected_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
62 5006 mwan3_dynamic_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
62 5006 mwan3_rules all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
2999 908K CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save mask 0x3f00
995 422K mwan3_custom_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0x3f00/0x3f00
995 422K mwan3_connected_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0x3f00/0x3f00
501 119K mwan3_dynamic_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0x3f00/0x3f00
Chain mwan3_iface_in_WAN2 (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- eth0.221 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_custom_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
631 125K MARK all -- eth0.221 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_connected_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
0 0 MARK all -- eth0.221 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_dynamic_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
3 197 MARK all -- eth0.221 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 /* WAN2 */ MARK xset 0x200/0x3f00
Chain mwan3_ifaces_in (1 references)
pkts bytes target prot opt in out source destination
945 191K mwan3_iface_in_WAN2 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
Chain mwan3_policy_failover (1 references)
pkts bytes target prot opt in out source destination
55 3624 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 /* WAN2 1 1 */ MARK xset 0x200/0x3f00
Chain mwan3_rules (1 references)
pkts bytes target prot opt in out source destination
62 5006 mwan3_policy_failover all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd30:eeb0:f333::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='eth0'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].vid='1'
network.@switch_vlan[0].ports='0 2 3 4'
network.@device[1]=device
network.@device[1].type='8021q'
network.@device[1].ifname='eth0'
network.@device[1].vid='221'
network.@device[1].name='eth0.221'
network.@device[1].ipv6='0'
network.WAN2=interface
network.WAN2.proto='dhcp'
network.WAN2.device='eth0.221'
network.WAN2.hostname='*'
network.WAN2.metric='20'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='0t 1'
network.@switch_vlan[1].vid='221'
network.WAN1=interface
network.WAN1.proto='dhcp'
network.WAN1.device='eth1'
network.WAN1.hostname='*'
network.WAN1.metric='10'
mwan3.globals=globals
mwan3.globals.mmx_mask='0x3F00'
mwan3.isp1=member
mwan3.isp1.metric='1'
mwan3.isp1.weight='1'
mwan3.isp1.interface='WAN1'
mwan3.isp2=member
mwan3.isp2.metric='1'
mwan3.isp2.weight='1'
mwan3.isp2.interface='WAN2'
mwan3.failover=policy
mwan3.failover.use_member='isp1' 'isp2'
mwan3.failover.last_resort='unreachable'
mwan3.rule=rule
mwan3.rule.proto='all'
mwan3.rule.dest_ip='0.0.0.0/0'
mwan3.rule.sticky='0'
mwan3.rule.use_policy='failover'
mwan3.WAN1=interface
mwan3.WAN1.enabled='1'
mwan3.WAN1.initial_state='online'
mwan3.WAN1.family='ipv4'
mwan3.WAN1.track_ip='8.8.8.8'
mwan3.WAN1.track_method='ping'
mwan3.WAN1.reliability='2'
mwan3.WAN1.count='1'
mwan3.WAN1.size='56'
mwan3.WAN1.max_ttl='60'
mwan3.WAN1.timeout='4'
mwan3.WAN1.interval='10'
mwan3.WAN1.failure_interval='5'
mwan3.WAN1.recovery_interval='5'
mwan3.WAN1.down='5'
mwan3.WAN1.up='5'
mwan3.WAN2=interface
mwan3.WAN2.enabled='1'
mwan3.WAN2.initial_state='online'
mwan3.WAN2.family='ipv4'
mwan3.WAN2.track_ip='8.8.8.8'
mwan3.WAN2.track_method='ping'
mwan3.WAN2.reliability='1'
mwan3.WAN2.count='1'
mwan3.WAN2.size='56'
mwan3.WAN2.max_ttl='60'
mwan3.WAN2.timeout='4'
mwan3.WAN2.interval='10'
mwan3.WAN2.failure_interval='5'
mwan3.WAN2.recovery_interval='5'
mwan3.WAN2.down='5'
mwan3.WAN2.up='5'