Output of "ip a show"
-------------------------------------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
link/ipip 0.0.0.0 brd 0.0.0.0
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether ca:92:b9:21:2d:a2 brd ff:ff:ff:ff:ff:ff
4: gre0@NONE: <NOARP> mtu 1476 qdisc noop state DOWN group default qlen 1000
link/gre 0.0.0.0 brd 0.0.0.0
5: gretap0@NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
6: erspan0@NONE: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
7: teql0: <NOARP> mtu 1500 qdisc noop state DOWN group default qlen 100
link/void
8: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP group default qlen 1000
link/ether 00:e0:b4:63:f0:98 brd ff:ff:ff:ff:ff:ff
9: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:e0:b4:63:f0:99 brd ff:ff:ff:ff:ff:ff
inet 10.21.192.234/20 brd 10.21.207.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::2e0:b4ff:fe63:f099/64 scope link
valid_lft forever preferred_lft forever
12: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:e0:b4:63:f0:98 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
inet6 fd06:92b6:473::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::2e0:b4ff:fe63:f098/64 scope link
valid_lft forever preferred_lft forever
14: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:21:6a:49:3e:da brd ff:ff:ff:ff:ff:ff
inet 10.27.194.178/20 brd 10.27.207.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::221:6aff:fe49:3eda/64 scope link
valid_lft forever preferred_lft forever
18: utun: <OINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 9000 qdisc 购物_codel state UNKNOWN group default qlen 500
link/none
inet 198.18.0.1/30 brd 198.18.0.3 scope global utun
valid_lft forever preferred_lft forever
inet6 fe80::3935:2b51:5802:48be/64 scope link stable-privacy
valid_lft forever preferred_lft forever
19: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether e0:e1:a9:19:8c:85 brd ff:ff:ff:ff:ff:ff
inet 10.27.194.177/20 brd 10.27.207.255 scope global wlan1
valid_lft forever preferred_lft forever
inet6 fe80::e2e1:a9ff:fe19:8c85/64 scope link
valid_lft forever preferred_lft forever
Output of "ip route show"
-------------------------------------------------
default via 10.21.192.1 dev eth1 proto static src 10.21.192.234 metric 1
default via 10.27.192.1 dev wlan0 proto static src 10.27.194.178 metric 2
default via 10.27.192.1 dev wlan1 proto static src 10.27.194.177 metric 3
10.21.192.0/20 dev eth1 proto static scope link metric 1
10.27.192.0/20 dev wlan0 proto static scope link metric 2
10.27.192.0/20 dev wlan1 proto static scope link metric 3
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
198.18.0.0/30 dev utun proto kernel scope link src 198.18.0.1
Output of "ip rule show"
-------------------------------------------------
0: from all lookup local
1000: from all fwmark 0x162 lookup 354
1001: from all iif eth1 lookup 1
1002: from all iif wlan0 lookup 2
1003: from all iif wlan1 lookup 3
2001: from all fwmark 0x100/0x3f00 lookup 1
2002: from all fwmark 0x200/0x3f00 lookup 2
2003: from all fwmark 0x300/0x3f00 lookup 3
2061: from all fwmark 0x3d00/0x3f00 blackhole
2062: from all fwmark 0x3e00/0x3f00 unreachable
3001: from all fwmark 0x100/0x3f00 unreachable
3002: from all fwmark 0x200/0x3f00 unreachable
3003: from all fwmark 0x300/0x3f00 unreachable
32766: from all lookup main
32767: from all lookup default
Output of "ip route list table 1-250 2>/dev/null"
-------------------------------------------------
Table 1: default via 10.21.192.1 dev eth1 proto static src 10.21.192.234 metric 1
10.21.192.0/20 dev eth1 proto static scope link metric 1
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
198.18.0.0/30 dev utun proto kernel scope link src 198.18.0.1
Table 2: default via 10.27.192.1 dev wlan0 proto static src 10.27.194.178 metric 2
10.27.192.0/20 dev wlan0 proto static scope link metric 2
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
198.18.0.0/30 dev utun proto kernel scope link src 198.18.0.1
Table 3: default via 10.27.192.1 dev wlan1 proto static src 10.27.194.177 metric 3
10.27.192.0/20 dev wlan1 proto static scope link metric 3
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
198.18.0.0/30 dev utun proto kernel scope link src 198.18.0.1
Output of "iptables -L -t mangle -v -n"
-------------------------------------------------
Chain PREROUTING (policy ACCEPT 578 packets, 193K bytes)
pkts bytes target prot opt in out source destination
1151K 620M open克拉斯 all -- * * 0.0.0.0/0 0.0.0.0/0
12M 12G mwan3_hook all -- * * 0.0.0.0/0 0.0.0.0/0
Chain INPUT (policy ACCEPT 27 packets, 2743 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 546 packets, 189K bytes)
pkts bytes target prot opt in out source destination
6886K 5206M RRDIPT_FORWARD all -- * * 0.0.0.0/0 0.0.0.0/0
1765 97836 TCPMSS tcp -- * eth1 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
1642 86308 TCPMSS tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
0 0 TCPMSS tcp -- * usb0 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
0 0 TCPMSS tcp -- usb0 * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
626 34688 TCPMSS tcp -- * wlan0 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
556 29224 TCPMSS tcp -- wlan0 * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
545 30260 TCPMSS tcp -- * wlan1 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
521 27480 TCPMSS tcp -- wlan1 * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
Chain OUTPUT (policy ACCEPT 35 packets, 18842 bytes)
pkts bytes target prot opt in out source destination
3900K 1097M mwan3_hook all -- * * 0.0.0.0/0 0.0.0.0/0
202K 72M open克拉斯_output all -- * * 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 581 packets, 207K bytes)
pkts bytes target prot opt in out source destination
Chain RRDIPT_FORWARD (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- * * 10.21.192.1 0.0.0.0/0
0 0 RETURN all -- * * 0.0.0.0/0 10.21.192.1
0 0 RETURN all -- * * 10.27.192.1 0.0.0.0/0
0 0 RETURN all -- * * 0.0.0.0/0 10.27.192.1
279 79243 RETURN all -- * * 192.168.1.149 0.0.0.0/0
267 109K RETURN all -- * * 0.0.0.0/0 192.168.1.149
0 0 RETURN all -- * * 223.5.5.5 0.0.0.0/0
0 0 RETURN all -- * * 0.0.0.0/0 223.5.5.5
Chain mwan3_connected_ipv4 (2 references)
pkts bytes target prot opt in out source destination
8155K 11G 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
15M 13G CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 CONNMARK restore mask 0x3f00
1680K 947M mwan3_ifaces_in all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
1607K 932M mwan3_custom_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
1607K 932M mwan3_connected_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
1564K 929M mwan3_dynamic_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
1564K 929M mwan3_rules all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
16M 13G CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save mask 0x3f00
15M 13G mwan3_custom_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0x3f00/0x3f00
15M 13G mwan3_connected_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0x3f00/0x3f00
7053K 2035M mwan3_dynamic_ipv4 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0x3f00/0x3f00
Chain mwan3_iface_in_wan (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- eth1 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_custom_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
68902 13M MARK all -- eth1 * 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 -- eth1 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_dynamic_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
2449 1587K MARK all -- eth1 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 /* wan */ MARK xset 0x100/0x3f00
Chain mwan3_iface_in_wwan (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- wlan0 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_custom_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
1 328 MARK all -- wlan0 * 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 -- wlan0 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_dynamic_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
345 161K MARK all -- wlan0 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 /* wwan */ MARK xset 0x200/0x3f00
Chain mwan3_iface_in_wwan1 (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- wlan1 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_custom_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
1 328 MARK all -- wlan1 * 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 -- wlan1 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_dynamic_ipv4 src mark match 0x0/0x3f00 /* default */ MARK or 0x3f00
471 196K MARK all -- wlan1 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 /* wwan1 */ MARK xset 0x300/0x3f00
Chain mwan3_ifaces_in (1 references)
pkts bytes target prot opt in out source destination
1680K 947M mwan3_iface_in_wan all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
1609K 933M mwan3_iface_in_wwan all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
1608K 932M mwan3_iface_in_wwan1 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00
Chain mwan3_policy_balance (1 references)
pkts bytes target prot opt in out source destination
2984 245K MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 statistic mode random probability 0.20000000019 /* wwan1 20 100 */ MARK xset 0x300/0x3f00
3017 251K MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 statistic mode random probability 0.25000000000 /* wwan 20 80 */ MARK xset 0x200/0x3f00
8985 782K MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00 /* wan 60 60 */ MARK xset 0x100/0x3f00
Chain mwan3_policy_wan3 (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/0x3f00 /* wwan1 20 20 */ MARK xset 0x300/0x3f00
Chain mwan3_policy_wlan1 (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/0x3f00 /* wan 60 60 */ MARK xset 0x100/0x3f00
Chain mwan3_policy_wlan2 (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/0x3f00 /* wwan1 20 20 */ MARK xset 0x300/0x3f00
Chain mwan3_rules (1 references)
pkts bytes target prot opt in out source destination
1564K 929M mwan3_policy_balance all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0x3f00