touch /tmp/000nat-start are just stuff I see in some of the thread. After run then I realized it just create a file under /tmp. I guess the purpose is to check if and when the nat-start is being run. So I add a bit here and there and it gets more messy.
Replaced with the new nat-start and rebooted. The symptom are the same. Phone connected to wifi cannot stream with the TV apps as it goes through VPN Client 1. I have to go to VPN Client 1 GUI page click apply button and then the phone TV apps is stream correctly via WAN. I have collected the boot messages.
tail -1000 messages | grep x3m
May 5 13:05:22 (x3mRouting.sh): 2522 Entware not available - wait time 117 secs left
Feb 2 14:37:01 (x3mRouting.sh): 2522 Entware not available - wait time 116 secs left
Feb 2 14:37:02 (x3mRouting.sh): 2522 Entware not available - wait time 115 secs left
Feb 2 14:37:03 (x3mRouting.sh): 2522 Entware not available - wait time 114 secs left
Feb 2 14:37:04 (x3mRouting.sh): 2522 Entware not available - wait time 113 secs left
Feb 2 14:37:05 x3mRouting: Configuring policy rules for client 1
Feb 2 14:37:05 (x3mvpnrouting.sh): 4403 Completed routing policy configuration for client 1
Feb 2 14:37:05 (x3mRouting.sh): 2522 Entware not available - wait time 112 secs left
Feb 2 14:37:05 (x3mRouting.sh): 4763 Starting Script Execution server=2 client=1
Feb 2 14:37:06 (x3mRouting.sh): 4763 x3mRouting Lock File in use by PID 2522 - wait time 177 secs left
Feb 2 14:37:06 x3mRouting: Configuring policy rules for client 2
Feb 2 14:37:06 (x3mvpnrouting.sh): 4812 Completed routing policy configuration for client 2
Feb 2 14:37:06 (x3mRouting.sh): 2522 Entware not available - wait time 111 secs left
Feb 2 14:37:07 (x3mRouting.sh): 2522 Entware not available - wait time 110 secs left
Feb 2 14:37:08 (x3mRouting.sh): 2522 IPSET restored: AstroGo from /opt/tmp/AstroGo
Feb 2 14:37:09 RT-AC86U-DBA8 (x3mRouting.sh): 6119 Created fwmark 0x1000/0x1000
Feb 2 14:37:09 RT-AC86U-DBA8 (x3mRouting.sh): 6119 IPSET created: WAN_IP hash:net family inet hashsize 1024 maxelem 65536
Feb 2 14:37:09 RT-AC86U-DBA8 (x3mRouting.sh): 6119 CRON schedule created: #WAN_IP# '0 2 * * * ipset save WAN_IP'
Feb 2 14:37:09 RT-AC86U-DBA8 (x3mRouting.sh): 6119 Selective Routing Rule via VPN Client 1 created for WAN_IP fwmark 0x1000/0x1000
Feb 2 14:37:09 RT-AC86U-DBA8 (x3mRouting.sh): 6119 Completed Script Execution
Feb 2 14:37:10 RT-AC86U-DBA8 (x3mRouting.sh): 6445 Starting Script Execution ipset_name=AstroGo dnsmasq=amazonaws.com,cloudflare.net,com.my,vsscloud-astroprod.tv
Feb 2 14:37:10 RT-AC86U-DBA8 x3mRouting: Configuring policy rules for client 2
Feb 2 14:37:10 RT-AC86U-DBA8 (x3mvpnrouting.sh): 6491 Completed routing policy configuration for client 2
Feb 2 14:37:10 RT-AC86U-DBA8 (x3mRouting.sh): 6445 CRON schedule created: #AstroGo# '0 2 * * * ipset save AstroGo'
Feb 2 14:37:10 RT-AC86U-DBA8 (x3mRouting.sh): 6445 Completed Script Execution
Feb 2 14:37:11 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7025 Removing rule 10101 from routing policy
Feb 2 14:37:11 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7025 Removing rule 10102 from routing policy
Feb 2 14:37:11 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7025 Deleting PREROUTING Chain 2 for IPSET List WAN_IP
Feb 2 14:37:11 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7025 00 Deleting fwmark 0x1000/0x1000
Feb 2 14:37:12 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7025 ip rule add from 10.16.0.0/24 table ovpnc1 priority 10101
Feb 2 14:37:12 RT-AC86U-DBA8 (x3mvpnrouting.sh): Adding route for 10.16.0.0/24 to through VPN client 1
Feb 2 14:37:12 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7025 ip rule add from 192.168.1.55 table ovpnc1 priority 10102
Feb 2 14:37:12 RT-AC86U-DBA8 (x3mvpnrouting.sh): Adding route for 192.168.1.55 to through VPN client 1
Feb 2 14:37:12 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7025 Routing rules created for IPSET list AstroGo
Feb 2 14:37:12 RT-AC86U-DBA8 x3mRouting: Configuring policy rules for client 1
Feb 2 14:37:12 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7025 Completed routing policy configuration for client 1
Feb 2 14:37:12 RT-AC86U-DBA8 openvpn-event[7002]: Running /jffs/scripts/x3mRouting/vpnclient1-route-up tun11 1500 1584 10.8.3.12
Feb 2 14:37:12 RT-AC86U-DBA8 (x3mRouting.sh): 4763 Completed Script Execution
Feb 2 14:37:13 RT-AC86U-DBA8 (x3mRouting.sh): 7655 Starting Script Execution 1 0 ipset_name=AstroGo dnsmasq=amazonaws.com,cloudflare.net,com.my,vsscloud-astroprod.tv
Feb 2 14:37:13 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7750 Removing rule 10301 from routing policy
Feb 2 14:37:13 RT-AC86U-DBA8 (x3mRouting.sh): 7655 CRON schedule created: #AstroGo# '0 2 * * * ipset save AstroGo'
Feb 2 14:37:13 RT-AC86U-DBA8 (x3mRouting.sh): 7655 Completed Script Execution
Feb 2 14:37:13 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7750 Deleting PREROUTING Chain 1 for IPSET List AstroGo
Feb 2 14:37:13 RT-AC86U-DBA8 (x3mRouting.sh): 8134 Starting Script Execution server=2 ipset_name=AstroGo
Feb 2 14:37:13 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7750 ip rule add from 192.168.2.0/24 table ovpnc2 priority 10301
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mvpnrouting.sh): Adding route for 192.168.2.0/24 to through VPN client 2
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7750 Created fwmark 0x2000/0x2000
Feb 2 14:37:14 RT-AC86U-DBA8 x3mRouting: Configuring policy rules for client 2
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mvpnrouting.sh): 7750 Completed routing policy configuration for client 2
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mRouting.sh): 8134 Error! Mandatory PREROUTING rule for IPSET name AstroGo does not exist.
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mRouting.sh): 8447 Starting Script Execution 1 0 VPN_IP dnsmasq=whatsmyipaddress.com
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mRouting.sh): 8447 CRON schedule created: #VPN_IP# '0 2 * * * ipset save VPN_IP'
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mRouting.sh): 8447 Selective Routing Rule via WAN deleted for VPN_IP fwmark 0x8000/0x8000
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mRouting.sh): 8447 Selective Routing Rule via WAN created for VPN_IP fwmark 0x8000/0x8000
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mRouting.sh): 8447 Completed Script Execution
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mRouting.sh): 8688 Starting Script Execution ALL 1 WAN_IP dnsmasq=whatismyipaddress.com
Feb 2 14:37:14 RT-AC86U-DBA8 (x3mRouting.sh): 8688 Created fwmark 0x1000/0x1000
Feb 2 14:37:15 RT-AC86U-DBA8 (x3mRouting.sh): 8688 CRON schedule created: #WAN_IP# '0 2 * * * ipset save WAN_IP'
Feb 2 14:37:15 RT-AC86U-DBA8 (x3mRouting.sh): 8688 Selective Routing Rule via VPN Client 1 deleted for WAN_IP fwmark 0x1000/0x1000
Feb 2 14:37:15 RT-AC86U-DBA8 (x3mRouting.sh): 8688 Selective Routing Rule via VPN Client 1 created for WAN_IP fwmark 0x1000/0x1000
Feb 2 14:37:15 RT-AC86U-DBA8 (x3mRouting.sh): 8688 Completed Script Execution
Feb 2 14:37:15 RT-AC86U-DBA8 (x3mRouting.sh): 8966 Starting Script Execution ipset_name=AstroGo dnsmasq=amazonaws.com,cloudflare.net,com.my,vsscloud-astroprod.tv
Feb 2 14:37:16 RT-AC86U-DBA8 (x3mRouting.sh): 8966 CRON schedule created: #AstroGo# '0 2 * * * ipset save AstroGo'
Feb 2 14:37:16 RT-AC86U-DBA8 (x3mRouting.sh): 8966 Completed Script Execution
admin@RT-AC86U-DBA8:/# iptables -nvL PREROUTING -t mangle --line
Chain PREROUTING (policy ACCEPT 790 packets, 185K bytes)
num pkts bytes target prot opt in out source destination
1 1203 409K MARK all -- tun22 * 0.0.0.0/0 0.0.0.0/0 match-set AstroGo dst MARK or 0x1000
2 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set VPN_IP dst MARK or 0x8000
3 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set WAN_IP dst MARK or 0x1000
admin@RT-AC86U-DBA8:/#
admin@RT-AC86U-DBA8:/# iptables -nvL POSTROUTING -t nat --line
Chain POSTROUTING (policy ACCEPT 497 packets, 41467 bytes)
num pkts bytes target prot opt in out source destination
1 0 0 MASQUERADE all -- * tun12 192.168.2.0/24 0.0.0.0/0 /* 2.4GHz Guest 1 */
2 13 780 MASQUERADE all -- * tun12 0.0.0.0/0 0.0.0.0/0
3 917 71970 MASQUERADE all -- * tun11 0.0.0.0/0 0.0.0.0/0
4 609 45056 PUPNP all -- * ppp0 0.0.0.0/0 0.0.0.0/0
5 63 6113 MASQUERADE all -- * ppp0 !110.159.94.16 0.0.0.0/0
6 0 0 MASQUERADE all -- * vlan500 !169.254.236.60 0.0.0.0/0
7 15 5104 MASQUERADE all -- * br0 192.168.1.0/24 192.168.1.0/24
8 0 0 MASQUERADE all -- * tun11 10.16.0.0/24 0.0.0.0/0
admin@RT-AC86U-DBA8:/#