Connection between VLANs get dropped after ~30 seconds. PfSense + MikroTik Router setup
-
I have a setup with multiple VLANs in my Netgate SG-3100 box. I'm forwarding all VLANs, tagged, on a trunked line to the MikroTik Router running SwitchOS. From the MikroTik, the ports are assigned individual VLANS.
I have a TrueNAS box with two separate NICs. One is in VLAN 50 for management and the other is in VLAN 10, wher I expose docker containers.
I also have a separate computer connetcted to VLAN 100, where I'd like to interact with the docker containers exposed on VLAN 10. I've set up firewall rules that allow connections from the computer in the VLAN 100 net to access devices in VLAN10, but not the other way around. However, when I access the docker containers, the connection drops after around 30s and is reconnected after a minute or more.
I've attached a simplified diagram of the network setup. Note there are more VLANs than the ones shown here, all with DHCP enabled and devices get IPs. Also the PfSense is DNS resolving to the correct docker containers and devices on the same VLAN is able to access the docker containers with no connection drops.
I suspect this is due to a similar problem as described in Asynchrounous routing as described in many posts before:
https://serverfault.com/questions/686619/pfsense-connection-between-two-internal-lans-dropped-after-20-secondsI have no static routes defined, so ticking the "Bypass firewall rules for traffic on the same interface" option should have no effect. I have it ticked, though, to no avail.
Does anyone have any suggestions as to what is happening? Any help would be much appreciated!