Ustrombase Posted April 17, 2023 Share Posted April 17, 2023 (edited) I have created a small diagram to illustrate my problem. Basically I have configured VLANs on my Unraid Server under Settings > Network Settings with "Enable VLANs" set to `Yes` and I added a VLAN for each one I have on my pfsense router. I then have 2 VMs on top of Unraid and I have some dockers on the Unraid Host. My problem is I can't connect to my containers on the host via a port. I have done a `netcat` port scan and from either VM i have I can't detect a port open on the host, but the VMs can see each other's ports. This is weird bc I assumed a VM should be able to talk to the host with no problems. FYI Unraid on the default untagged VLAN hence why I put it as VLAN 0 but maybe it should have been VLAN 1 i can't remember what is the notation for the untagged VLAN. This situation reminds me when I used macvlan dockers to give a docker an IP it couldn't connect back to the host but that was a known issue this is something I felt with VMs wouldn't happen. Edited April 17, 2023 by Ustrombase Quote Link to comment
MrGrey Posted April 17, 2023 Share Posted April 17, 2023 3 hours ago, Ustrombase said: I assumed a VM should be able to talk to the host with no problems. I would be very uncomfortable with a VM talking to its host. I believe a VM, almost by definition, shouldn't know what is hosting it, no? MrGrey Quote Link to comment
Ustrombase Posted April 17, 2023 Author Share Posted April 17, 2023 (edited) Maybe that's true I haven't used VMs until now. I was under the impression it would see the host just as another computer but maybe it's the n00b in me thinking that. oh and btw it can communicate to the host IF it's on the same network as in untagged network. Edited April 17, 2023 by Ustrombase Quote Link to comment
itimpi Posted April 17, 2023 Share Posted April 17, 2023 Have you made sure that both vlans have gateways set so that there is appropriate routing between the vlans? Quote Link to comment
Ustrombase Posted April 17, 2023 Author Share Posted April 17, 2023 34 minutes ago, itimpi said: Have you made sure that both vlans have gateways set so that there is appropriate routing between the vlans? So I made sure all VMs and the unRAID host can ping each other and my firewall rules allow traffic hence why I call out pinging because my firewall rules are set for all traffic tcp and udp Quote Link to comment
Ustrombase Posted April 27, 2023 Author Share Posted April 27, 2023 @itimpiany other thoughts here? I feel I have been able to replicate this using other VMs that are not on the same VLAN as my unRAID server host but everything can ping each other. It's not a routing issue as I have other machines able to connect to my unRAID host and to the VMs. I'm unsure what is going on but it feels like it's something to do with unRAID and how it handles VLANs. Quote Link to comment
Ustrombase Posted September 20 Author Share Posted September 20 @itimpijust wanted to follow up here in case you had any additional insight Quote Link to comment
tjb_altf4 Posted September 20 Share Posted September 20 I'd put MQTT on a custom network (e.g. one of the vlan bridge networks) and retest, seems like Docker's networking defaults are causing this. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.