Home Assistant VLAN GUI connection refused

I have Home Assistant VM running on a Proxmox server. The Proxmox server is on my main VLAN 1 and I use a second NIC on the Proxmox server for the HA VM to connect to the IoT VLAN via an access port on my Mikrotik router. The Home Assistant VM only uses this NIC and has the correct IP set on the IoT VLAN.
I have some rules to allow communication between devices on main VLAN (10.13.1.0) and HA GUI (on IoT VLAN 10.13.10.0) and vice versa.
This worked perfectly for the past few months. However, I had to reinstall my Proxmox server and restore all VMs, including HA. The network settings and interface are restored as previously.

Now I have this weird problem that when a device (phone/laptop) is on the main VLAN, I can connect to the HA GUI via http://10.13.10.13:8123 without a problem. However, when this device is on the same IoT VLAN as where the HA VM instance is, I get a ‘connection refused’ when I try to reach the HA GUI via its IP address. If I try to connect via its domain name http://homeassistant.local:8123 it also gives me a ‘connection refused’, but after a few tries I can reach the GUI and then IP:8123 also starts working. This works until I disconnect the device from the IoT VLAN, connect to main VLAN and connect back to IoT VLAN again. Then I have to do the same trick to make it work again.

The weird thing is nothing has changed to the config of either HA or Mikrotik, it just stopped working after the restore of the HA VM.

I do see some of these errors in the logs:

ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 350, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x01\x02'

Can someone help me figure out what is going on?

I decided to ditched the HA VM and started over with a fresh install. At the onboarding page I uploaded my Home Assistant backup file and everything was back to normal.

Apparently the Proxmox VM backup screwed things up, although I made the backup with the VM stopped…