Fedora network manager crash

I’m using Fedora 34.
/proc/version:

Linux version 5.13.13-200.fc34.x86_64 (mockbuild@bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1), GNU ld version 2.35.2-5.fc34) #1 SMP Thu Aug 26 17:06:39 UTC 2021

I use OpenConnect Multi-protocol VPN Client to connect to a vpn configured using fedora Network > VPN in settings. There are sometimes I turn on vpn and start using it, and after some time, I have network issues. When I try to turn off vpn or wifi, fedora freezes for about a minute. When I just logout/login, wifi and vpn disappear. The only solution is to reboot.

I have also seen journalctl -u NetworkManager but I didn’t find any relating error. I’m not even sure this is related to the vpn service.

Try restarting the related services when the issue happens:

sudo systemctl restart NetworkManager.service systemd-resolved.service

Happened again. I did this. It restarted but the problem wasn’t solved.