Can't connect through wan

I have connected my MT300A through an ethernet cable in wan port to my main router. Last week it worked fine, but now it can’t get internet access from the main router; it can only access to the main router’s configuration page.

This is the system log (I’ve reported only a piece of it, because it is repetitive):

Wed May 24 06:32:01 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:01 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:02 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:02 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: ui.ff.avast.com

Wed May 24 06:32:04 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: clients1.google.com

Wed May 24 06:32:06 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: android.googleapis.com

Wed May 24 06:32:06 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:06 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:06 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:09 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: checkip.dyndns.org

Wed May 24 06:32:09 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: myip.com.tw

Wed May 24 06:32:12 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:12 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:12 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:15 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: clients1.google.com

Wed May 24 06:32:16 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: luci.subsignal.org

Wed May 24 06:32:17 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: android.clients.google.com

Wed May 24 06:32:18 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:18 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:18 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:19 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: checkip.dyndns.org

Wed May 24 06:32:19 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: myip.com.tw

Wed May 24 06:32:20 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: ui.ff.avast.com

Wed May 24 06:32:23 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:24 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:24 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:25 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: ui.ff.avast.com

Wed May 24 06:32:29 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: checkip.dyndns.org

Wed May 24 06:32:29 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: myip.com.tw

Wed May 24 06:32:29 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: graph.facebook.com

Wed May 24 06:32:29 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:29 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:29 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:30 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: 3.openwrt.pool.ntp.org

Wed May 24 06:32:30 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: 2.openwrt.pool.ntp.org

Wed May 24 06:32:30 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: 1.openwrt.pool.ntp.org

Wed May 24 06:32:30 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: 0.openwrt.pool.ntp.org

Wed May 24 06:32:32 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: graph.facebook.com

Wed May 24 06:32:33 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:33 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:40 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: checkip.dyndns.org

Wed May 24 06:32:40 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: myip.com.tw

Wed May 24 06:32:40 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:40 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:40 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:43 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: clients1.google.com

Wed May 24 06:32:46 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:46 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:46 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:50 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: checkip.dyndns.org

Wed May 24 06:32:50 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: myip.com.tw

Wed May 24 06:32:50 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: mqtt-mini.facebook.com

Wed May 24 06:32:52 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

Wed May 24 06:32:52 2017 daemon.warn dnsmasq[9400]: possible DNS-rebind attack detected: www.gstatic.com

I google and there are some information about this, e.g. http://tomatousb.org/forum/t-307015