Cant Connect to Virtual Machine from outside Internet, internal net ok, docker works from outside ok

Sidetrack_CA

Cadet
Joined
Oct 15, 2022
Messages
3
I have spent so many hours looking for a solution and I am losing it! haha.. Any help anyone can offer would be greatly appreciated.

My system:

Dell poweredge R710
CPUs Duel Intel X5675 3.07Ghz
144GB ECC RAM
(5) 14TB Seagate EXOS 7200 RPM HDD
(1) Samsung EVO 4TB SSD (Cache Drive)
TrueNAS Scale 22.02.4

I setup a virtual machine Ubuntu 22.04 running some web apps. these apps are accessed using different IP ports. I setup port forwarding on my router to forward from my public IP (98.208.38.226) to my private IPs for the virtual server (192.168.1.170). My TrueNAS is setup at IP (192.168.1.150). I also have a couple of docker apps setup on the TrueNAS as well.

I can access the docker apps without issue from both inside and outside the local network (ex. 192.168.1.150:10018 Docker app works ok). I can access the virtual machines from inside the network (192.168.1.170:8989 - works ok) but not from outside the network 98.208.38.226:8989 which has a port forward on the router to 192.168.1.170:8989.

I verified through the router logs that it is seeing the request and forwarding it to TrueNAS, but it never makes it to the virtual machine.

I am completely lost on this on. Any help would be really really appreciated.

Thanks in advance for your response.

Rob
 

Sidetrack_CA

Cadet
Joined
Oct 15, 2022
Messages
3
I have spent so many hours looking for a solution and I am losing it! haha.. Any help anyone can offer would be greatly appreciated.

My system:

Dell poweredge R710
CPUs Duel Intel X5675 3.07Ghz
144GB ECC RAM
(5) 14TB Seagate EXOS 7200 RPM HDD
(1) Samsung EVO 4TB SSD (Cache Drive)
TrueNAS Scale 22.02.4

I setup a virtual machine Ubuntu 22.04 running some web apps. these apps are accessed using different IP ports. I setup port forwarding on my router to forward from my public IP (98.208.38.226) to my private IPs for the virtual server (192.168.1.170). My TrueNAS is setup at IP (192.168.1.150). I also have a couple of docker apps setup on the TrueNAS as well.

I can access the docker apps without issue from both inside and outside the local network (ex. 192.168.1.150:10018 Docker app works ok). I can access the virtual machines from inside the network (192.168.1.170:8989 - works ok) but not from outside the network 98.208.38.226:8989 which has a port forward on the router to 192.168.1.170:8989.

I verified through the router logs that it is seeing the request and forwarding it to TrueNAS, but it never makes it to the virtual machine.

I am completely lost on this on. Any help would be really really appreciated.

Thanks in advance for your response.

Rob
UPDATE: I forgot to add that I verified that the port forwards on the router are setup the same for both the docker apps (which work) and the Virtual Machine (which do not work).

thought that might be important.
 

Sidetrack_CA

Cadet
Joined
Oct 15, 2022
Messages
3
** SOLVED **
I finally figured this out. i was using a VPN on the virtual server located on the TrueNAS. The VPN was allowing the traffic to be forwarded from the router, but all outbound traffic was set to go through the VPN, so the return traffic that should have come to the person outside who requested access got nothing but a timeout. As with most issues in IT this was a typical my fault ID10T or PEBKAC error. I am glad no one responded to the post as it would have taken away time from their lives.
 
Top