The router had internet for the past few hours but has just gone down. I think it might be something to do with the leasing of the ip, although idk anything about that. Here are the logs:

Thu Apr  6 22:45:50 2023 daemon.notice netifd: wan (32241): udhcpc: sending renew to 2.98.224.1
Thu Apr  6 22:45:50 2023 daemon.notice netifd: wan (32241): udhcpc: lease of 2.98.230.218 obtained, lease time 900
Thu Apr  6 22:45:55 2023 daemon.notice netifd: Network device 'eth0' link is down
Thu Apr  6 22:45:55 2023 daemon.notice netifd: Interface 'wan' has link connectivity loss
Thu Apr  6 22:45:55 2023 kern.info kernel: [11997.948162] nss-dp 3a001000.dp1 eth0: PHY Link is down
Thu Apr  6 22:45:55 2023 daemon.notice netifd: wan (32241): udhcpc: received SIGTERM
Thu Apr  6 22:45:55 2023 daemon.notice netifd: wan (32241): udhcpc: unicasting a release of 2.98.230.218 to 2.98.224.1
Thu Apr  6 22:45:55 2023 daemon.notice netifd: wan (32241): udhcpc: sending release
Thu Apr  6 22:45:55 2023 daemon.notice netifd: wan (32241): udhcpc: entering released state
Thu Apr  6 22:45:55 2023 daemon.notice netifd: wan (32241): Command failed: Permission denied
Thu Apr  6 22:45:55 2023 daemon.notice netifd: Interface 'wan' is now down
Thu Apr  6 22:45:55 2023 daemon.info avahi-daemon[3806]: Withdrawing address record for 2.98.230.218 on eth0.
Thu Apr  6 22:45:55 2023 daemon.info avahi-daemon[3806]: Leaving mDNS multicast group on interface eth0.IPv4 with address 2.98.230.218.
Thu Apr  6 22:45:55 2023 daemon.info avahi-daemon[3806]: Interface eth0.IPv4 no longer relevant for mDNS.
Thu Apr  6 22:45:55 2023 daemon.info avahi-daemon[3806]: Interface eth0.IPv6 no longer relevant for mDNS.
Thu Apr  6 22:45:55 2023 daemon.info avahi-daemon[3806]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::46ad:b1ff:fec3:a2a.
Thu Apr  6 22:45:55 2023 daemon.info avahi-daemon[3806]: Withdrawing address record for fe80::46ad:b1ff:fec3:a2a on eth0.
Thu Apr  6 22:45:55 2023 daemon.notice netifd: Interface 'wan' is disabled
Thu Apr  6 22:45:55 2023 daemon.notice netifd: Interface 'wan' is enabled
Thu Apr  6 22:45:55 2023 daemon.warn dnsmasq[4420]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Thu Apr  6 22:45:55 2023 kern.info kernel: [11998.023165] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Thu Apr  6 22:45:55 2023 user.notice mwan3[19559]: Execute ifdown event on interface wan (unknown)
Thu Apr  6 22:45:56 2023 user.notice firewall: Reloading firewall due to ifdown of wan ()
Thu Apr  6 22:45:57 2023 user.info mwan3track[32664]: Detect ifdown event on interface wan (eth0)
Thu Apr  6 22:46:06 2023 user.notice mwan3track[32664]: Interface wan (eth0) is offline