I had a power outage the night before last and my UPS shut off killing power to my OPNSense installation. I believe this to be the root cause.
I was trying to check for updates to adguard on my OPNSense install but the firmware updater kept saying "No route to Host". I thought that was odd and found a forum post here that told me to try the following command:
# pkg -d update -f
DBG(1)[22575]> pkg initialized
Updating OPNsense repository catalogue...
DBG(1)[22575]> PkgRepo: verifying update for OPNsense
DBG(1)[22575]> PkgRepo: need forced update of OPNsense
DBG(1)[22575]> Pkgrepo, begin update of '/var/db/pkg/repo-OPNsense.sqlite'
DBG(1)[22575]> Request to fetch pkg+https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.conf
DBG(1)[22575]> opening libfetch fetcher
DBG(1)[22575]> Fetch > libfetch: connecting
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.conf with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.conf with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.conf with opts "i"
DBG(1)[22575]> Request to fetch pkg+https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.txz
DBG(1)[22575]> opening libfetch fetcher
DBG(1)[22575]> Fetch > libfetch: connecting
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.txz with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.txz with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.txz with opts "i"
pkg: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/meta.txz: No route to host
repository OPNsense has no meta file, using default settings
DBG(1)[22575]> Request to fetch pkg+https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.pkg
DBG(1)[22575]> opening libfetch fetcher
DBG(1)[22575]> Fetch > libfetch: connecting
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.pkg with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.pkg with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.pkg with opts "i"
pkg: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.pkg: No route to host
DBG(1)[22575]> Request to fetch pkg+https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.txz
DBG(1)[22575]> opening libfetch fetcher
DBG(1)[22575]> Fetch > libfetch: connecting
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.txz with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.txz with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.txz with opts "i"
pkg: https://pkg.opnsense.org/FreeBSD:13:amd64/23.1/latest/packagesite.txz: No route to host
Unable to update repository OPNsense
Updating mimugmail repository catalogue...
DBG(1)[22575]> PkgRepo: verifying update for mimugmail
DBG(1)[22575]> PkgRepo: need forced update of mimugmail
DBG(1)[22575]> Pkgrepo, begin update of '/var/db/pkg/repo-mimugmail.sqlite'
DBG(1)[22575]> Request to fetch https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.conf
DBG(1)[22575]> opening libfetch fetcher
DBG(1)[22575]> Fetch > libfetch: connecting
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.conf with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.conf with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.conf with opts "i"
DBG(1)[22575]> Request to fetch https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.txz
DBG(1)[22575]> opening libfetch fetcher
DBG(1)[22575]> Fetch > libfetch: connecting
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.txz with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.txz with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.txz with opts "i"
pkg: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/meta.txz: Operation timed out
repository mimugmail has no meta file, using default settings
DBG(1)[22575]> Request to fetch https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.pkg
DBG(1)[22575]> opening libfetch fetcher
DBG(1)[22575]> Fetch > libfetch: connecting
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.pkg with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.pkg with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.pkg with opts "i"
pkg: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.pkg: Operation timed out
DBG(1)[22575]> Request to fetch https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.txz
DBG(1)[22575]> opening libfetch fetcher
DBG(1)[22575]> Fetch > libfetch: connecting
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.txz with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.txz with opts "i"
DBG(1)[22575]> Fetch: fetching from: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.txz with opts "i"
pkg: https://opn-repo.routerperformance.net/repo/FreeBSD:13:amd64/packagesite.txz: Operation timed out
Unable to update repository mimugmail
Error updating repositories!
So, it's not able to reach out at all. I have since tried pinging pkg.opnsense.org, google.com, and their respective IP Addresses. I got 100% packet loss.
# ping pkg.opnsense.org
PING pkg.opnsense.org (89.149.222.99): 56 data bytes
^C
--- pkg.opnsense.org ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
root@OPNsense:/home/trevor # ping google.com
PING google.com (172.217.0.174): 56 data bytes
^C
--- google.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
root@OPNsense:/home/trevor # ping 89.149.222.99
PING 89.149.222.99 (89.149.222.99): 56 data bytes
^C
--- 89.149.222.99 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
root@OPNsense:/home/trevor # ping 172.217.0.174
PING 172.217.0.174 (172.217.0.174): 56 data bytes
^C
--- 172.217.0.174 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
The oddest part of this to me is that the rest of the network is working fine.. I am currently typing this on a computer that is connected to the firewall. I can use all of my devices on the LAN fine. It's only the OPNSense installation itself that is the problem. I am at a loss on where to troubleshoot further here. Thanks for your time in reading this!