tcpdump is invaluable for troubleshooting networking.
If you want to inspect packets going through interface if0 going to or from example.com, then run:
$ doas tcpdump -v -n -i if0 'host example.com'