Hi, my loadbalance policy doesn't work, it just act like a failover one. (The only way to use wan2 is disconnecting wan1) I think that my policies are well configured, my balanced policy includes wan 1 and wan2, both with the same metric and weight.
I also try to set a rule regarding to a whatsmyip page, that says use wan2 only. But it is the same result, I just can use wan1, and I want to use the both ISP.
There's my troubleshooting page, please someone give me some help.
Software-Version
-------------------------------------------------
OpenWrt - OpenWrt SNAPSHOT r6305-8f24653
LuCI - git-18.051.28524-09ea6dbOutput of "ip a show"
-------------------------------------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether 50:c7:bf:1d:fb:7b brd ff:ff:ff:ff:ff:ff
inet 200.82.164.47/23 brd 200.82.165.255 scope global eth0
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether 50:c7:bf:1d:fb:79 brd ff:ff:ff:ff:ff:ff
4: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
link/ether 72:33:5d:83:b8:f3 brd ff:ff:ff:ff:ff:ff
5: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
link/ether 9a:a9:2b:3b:4b:96 brd ff:ff:ff:ff:ff:ff
12: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 50:c7:bf:1d:fb:79 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
13: eth1.1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 50:c7:bf:1d:fb:79 brd ff:ff:ff:ff:ff:ff
14: eth1.2@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 50:c7:bf:1d:fb:79 brd ff:ff:ff:ff:ff:ff
inet 190.79.112.125/19 brd 190.79.127.255 scope global eth1.2
valid_lft forever preferred_lft forever
15: eth1.3@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 50:c7:bf:1d:fb:79 brd ff:ff:ff:ff:ff:ff
16: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 50:c7:bf:1d:fb:7a brd ff:ff:ff:ff:ff:ffOutput of "ip route show"
-------------------------------------------------
default via 200.82.164.1 dev eth0 src 200.82.164.47 metric 10
default via 190.79.96.1 dev eth1.2 src 190.79.112.125 metric 20
190.79.96.0/19 dev eth1.2 scope link metric 20
192.168.1.0/24 dev br-lan scope link src 192.168.1.1
200.82.164.0/23 dev eth0 scope link metric 10Output of "ip rule show"
-------------------------------------------------
0: from all lookup local
1001: from all iif eth0 lookup main
1002: from all iif eth1.2 lookup main
32766: from all lookup main
32767: from all lookup defaultOutput of "ip route list table 1-250"
-------------------------------------------------
Table 1: default via 200.82.164.1 dev eth0
Table 2: default via 190.79.96.1 dev eth1.2Output of "iptables -L -t mangle -v -n"
-------------------------------------------------
Chain PREROUTING (policy ACCEPT 926 packets, 746K bytes)
pkts bytes target prot opt in out source destination
2925 2526K mwan3_hook all -- * * 0.0.0.0/0 0.0.0.0/0Chain INPUT (policy ACCEPT 73 packets, 8870 bytes)
pkts bytes target prot opt in out source destinationChain FORWARD (policy ACCEPT 848 packets, 736K bytes)
pkts bytes target prot opt in out source destination
9 576 TCPMSS tcp -- * eth0 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: wan (mtu_fix) */ TCPMSS clamp to PMTU
0 0 TCPMSS tcp -- * eth1.2 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: wan (mtu_fix) */ TCPMSS clamp to PMTU
0 0 TCPMSS tcp -- * eth1.3 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: wan (mtu_fix) */ TCPMSS clamp to PMTUChain OUTPUT (policy ACCEPT 66 packets, 22191 bytes)
pkts bytes target prot opt in out source destination
229 90909 mwan3_hook all -- * * 0.0.0.0/0 0.0.0.0/0Chain POSTROUTING (policy ACCEPT 914 packets, 758K bytes)
pkts bytes target prot opt in out source destinationChain mwan3_connected (2 references)
pkts bytes target prot opt in out source destination
975 93438 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_connected dst MARK or 0xff00Chain mwan3_hook (2 references)
pkts bytes target prot opt in out source destination
3154 2617K CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore mask 0xff00
92 10008 mwan3_ifaces_in all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
67 6592 mwan3_connected all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
44 3241 mwan3_ifaces_out all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
22 1393 mwan3_rules all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
3154 2617K CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save mask 0xff00
2688 2490K mwan3_connected all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0xff00/0xff00Chain mwan3_iface_in_wan (1 references)
pkts bytes target prot opt in out source destination
2 328 MARK all -- eth0 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_connected src mark match 0x0/0xff00 /* default */ MARK or 0xff00
2 376 MARK all -- eth0 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan */ MARK xset 0x100/0xff00Chain mwan3_iface_in_wan2 (1 references)
pkts bytes target prot opt in out source destination
2 104 MARK all -- eth1.2 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_connected src mark match 0x0/0xff00 /* default */ MARK or 0xff00
0 0 MARK all -- eth1.2 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan2 */ MARK xset 0x200/0xff00Chain mwan3_iface_out_wan (1 references)
pkts bytes target prot opt in out source destination
6 504 MARK all -- * eth0 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan */ MARK xset 0x100/0xff00Chain mwan3_iface_out_wan2 (1 references)
pkts bytes target prot opt in out source destination
7 588 MARK all -- * eth1.2 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan2 */ MARK xset 0x200/0xff00Chain mwan3_ifaces_in (1 references)
pkts bytes target prot opt in out source destination
68 6820 mwan3_iface_in_wan2 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
34 3254 mwan3_iface_in_wan all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00Chain mwan3_ifaces_out (1 references)
pkts bytes target prot opt in out source destination
35 2485 mwan3_iface_out_wan2 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
23 1586 mwan3_iface_out_wan all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00Chain mwan3_policy_WAN2_only (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan2 3 3 */ MARK xset 0x200/0xff00Chain mwan3_policy_WAN_WAN2 (0 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan 3 3 */ MARK xset 0x100/0xff00Chain mwan3_policy_balanced (1 references)
pkts bytes target prot opt in out source destination
11 691 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 statistic mode random probability 0.50000000000 /* wan2 3 6 */ MARK xset 0x200/0xff00
6 391 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan 3 3 */ MARK xset 0x100/0xff00Chain mwan3_rules (1 references)
pkts bytes target prot opt in out source destination
0 0 mwan3_policy_WAN2_only tcp -- * * 0.0.0.0/0 200.75.112.81 multiport sports 0:65535 multiport dports 80 mark match 0x0/0xff00 /* ip */
17 1082 mwan3_policy_balanced all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* default_rule */
My details page:
Interface status:
interface wan is error and tracking is active
interface wan2 is error and tracking is activeCurrent ipv4 policies:
WAN2_only:
wan2 (100%)WAN_WAN2:
wan (100%)balanced:
wan2 (50%)
wan (50%)Current ipv6 policies:
Directly connected ipv4 networks:
127.255.255.255
200.82.164.0
190.79.96.0
127.0.0.0
192.168.1.0/24
190.79.96.0/19
200.82.164.0/23
192.168.1.0
127.0.0.0/8
190.79.112.125
190.79.127.255
127.0.0.1
192.168.1.1
200.82.164.47
192.168.1.255
200.82.165.255
224.0.0.0/3Directly connected ipv6 networks:
Active ipv4 user rules:
0 0 - WAN2_only tcp -- * * 0.0.0.0/0 200.75.112.81 multiport sports 0:65535 multiport dports 80
57 4978 - balanced all -- * * 0.0.0.0/0 0.0.0.0/0Active ipv6 user rules:
I am very noob on openwrt, so maybe I'm doing something wrong... In details the system tells error, but with balanced policy it failover without problems. I follow every each step of mwan3 configuration, but I don't see any result.
(Last edited by marcelodiaz558 on 3 Mar 2018, 06:25)