How to config mwan3?(AX1800)

hello:
I just bought an AX1800 router. Its version information is as follows:
ubus call system board {
"kernel": "4.4.60",
"hostname": "GL-AX1800",
"system": "ARMv7 Processor rev 4 (v7l)",
"model": "GL Technologies, Inc. AX1800",
"board_name": "glinet,ax1800",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "21.02-SNAPSHOT",
"revision": "r16399+173-c67509efd7",
"target": "ipq807x/ipq60xx",
"description": "OpenWrt 21.02-SNAPSHOT r16399+173-c67509efd7",
"tip-revision": "OpenWrt 21.02-SNAPSHOT r16399+173-c67509efd7 / TIP-devel-00b46b4e",
"tip-version": "devel" } }
I want to configure the following functions:
Default public network access goes through the WAN port (wired Ethernet).
Access to specified websites goes through the WWAN interface (wireless repeater).
Could you please advise the detailed configuration steps? Thank you!

Hi

By default, we already use kmwan to manage multi-WAN. So if you plan to use mwan3, you will first need to SSH into the router and run the following commands to disable it:

/etc/init.d/kmwan stop
/etc/init.d/kmwan disable

After that, you can install and use luci-app-mwan3 via OPKG:

opkg update && opkg install luci-app-mwan3

Configuration can be done by following the OpenWrt guide:

**Thank you for reply!**So I have been trying to install mwan3 and configure it directly, but it keeps failing. Is this caused by a conflict with kmwan? Could you provide guidance on how to configure kmwan directly to meet my needs without installing mwan3?

The kmwan only provides multi-WAN management and does not include routing-related features.

If you only need routing policies, then luci-app-pbr might be a more suitable choice.

Update:
luci-app-pbr should currently only be available on v4.8.3 beta.

You can download the firmware here and follow this guide to install it.

I can’t find pbr pakage from opkg,so I try mwan3 again,interfaces (wan and wwan) can ping、tracerroute from route ssh ,but client can’t open web from wwan,how to fix it?This is my /etc/config/mwan3 file:

config globals 'globals'
option enabled '1'
option mmx_mask '0x3F00'

config interface 'wan'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
option reliability '2'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'

config interface 'wwan'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
option reliability '2'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'

config interface 'tethering'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
option reliability '2'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'

config member 'wan_only'
option interface 'wan'
option metric '1'
option weight '3'

config member 'wwan_only'
option interface 'wwan'
option metric '2'
option weight '3'

config member 'tethering_only'
option interface 'tethering'
option metric '3'
option weight '3'

config policy 'default_poli'
list use_member 'wan_only'
list use_member 'wwan_only'
list use_member 'tethering_only'
option last_resort 'default'

config interface 'wan6'
option enabled '1'
list track_ip '2001:4860:4860::8844'
list track_ip '2001:4860:4860::8888'
list track_ip '2620:0:ccd::2'
list track_ip '2620:0:ccc::2'
option family 'ipv6'
option reliability '2'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'

config interface 'wwan6'
option enabled '1'
list track_ip '2001:4860:4860::8844'
list track_ip '2001:4860:4860::8888'
list track_ip '2620:0:ccd::2'
list track_ip '2620:0:ccc::2'
option family 'ipv6'
option reliability '2'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'

config interface 'tethering6'
option enabled '1'
list track_ip '2001:4860:4860::8844'
list track_ip '2001:4860:4860::8888'
list track_ip '2620:0:ccd::2'
list track_ip '2620:0:ccc::2'
option family 'ipv6'
option reliability '2'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'

config member 'wan6_only'
option interface 'wan6'
option metric '1'
option weight '3'

config member 'wwan6_only'
option interface 'wwan6'
option metric '2'
option weight '3'

config member 'tethering6_only'
option interface 'tethering6'
option metric '3'
option weight '3'

config policy 'default_poli_v6'
list use_member 'wan6_only'
list use_member 'wwan6_only'
list use_member 'tethering6_only'
option last_resort 'default'

config rule 'dns_fix'
option proto 'tcp udp'
option priority '1'
option sticky '0'
option use_policy 'only_wan'

config rule 'github_wwan'
option ipset 'wireless_route_set'
option use_policy 'only_wwan'
option priority '10'

config rule 'default_all'
option dest_ip '0.0.0.0/0'
option use_policy 'only_wan'
option priority '1000'

config rule 'default_rule_v6'
option dest_ip '::/0'
option family 'ipv6'
option use_policy 'default_poli_v6'

config policy 'only_wan'
list use_member 'wan_only'
option last_resort 'default'

config policy 'only_wwan'
list use_member 'wwan_only'
option last_resort 'default'

We are not very familiar with the configuration and troubleshooting steps for mwan3.

We recommend asking about this in other active OpenWrt communities.

You might also want to check whether the corresponding IPSet lists have been populated with IP addresses, and whether the firewall is preserving the mark rules created by mwan3, etc.