I recently bought a new router, a TP-Link Archer C5400X. Downstream from it i have a CRS305-1G-4S+IN to which all my equipment are connected to. I drew a picture to illustrate it better:
When i try to access TrueNAS or the Nextcloud instance i have running on it via the domain i am using from equipment connected to the CRS305-1G-4S+IN, the connection times out. I can still access it via the local ip but this throws SSL errors since the common name is wrong. If i connect my equipment directly to the C5400X it works when i try to access it both using the domain and the local ip. It seems like the CRS305-1G-4S+IN is interfering with NAT loopback, and i do not understand why it is not working.
Earlier i had an Asus RT-N66U and this worked without problem, and i had everything connected exactly the same way just with another router.