• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Cannot contact VM via host name

DHCP and DNS
2
3
116
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    tknospdr
    last edited by tknospdr Apr 13, 2025, 2:32 AM Apr 13, 2025, 2:23 AM

    I just created a VM on one of my TrueNAS servers. It's running Debian 12.
    The server's IP is 192.168.2.2, the VM's is 2.3.
    I can surf the Internet from a browser in the VM.
    I set the proper host override in my pf resolver. I can ping the VM by both IP address and host name from any subnet on my LAN except for the VM's host. When I ping by host name it pings its own 2.2 address and shows success. When I try to ping by IP, it times out.
    If I enter the IP address into a browser on a computer on any of my internal subnets, the nginx default homepage shows up.
    If I enter the host name on a computer on the same subnet, the default homepage also shows up. If I enter the host name from a different subnet, I get a 'server dropped the connection' error.
    I have a port forward set up for external requests like so:
    login-to-view

    I feel like I've hit all the things I need to do, but obviously, something's not right.
    I've never dealt with VMs before so there may be steps I'm missing.

    I'd definitely appreciate some help.

    It looks like I'm getting a 525 error when trying to connect from outside the network, but I don't know why it's trying to connect via SSL in the first place.

    G 1 Reply Last reply 29 days ago Reply Quote 0
    • G
      Gertjan @tknospdr
      last edited by 29 days ago

      @tknospdr said in Cannot contact VM via host name:

      When I try to ping by IP, it times out.

      ICMP (is not UDP neither TCP) is allowed with firewall rules ?

      @tknospdr said in Cannot contact VM via host name:

      from a browser in

      That browser uses what DNS ? Maybe not pfSense so it couldn't know about the host over ride.

      @tknospdr said in Cannot contact VM via host name:

      If I enter the host name from a different subnet, I get a 'server dropped the connection' error.

      The device with that host name, does it allow connections coming in from your other local networks ?

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      T 1 Reply Last reply 29 days ago Reply Quote 0
      • T
        tknospdr @Gertjan
        last edited by 29 days ago

        @Gertjan said in Cannot contact VM via host name:

        @tknospdr said in Cannot contact VM via host name:

        When I try to ping by IP, it times out.

        ICMP (is not UDP neither TCP) is allowed with firewall rules ?

        I did say it worked via host name, that would show that ICMP is allowed, right?

        @tknospdr said in Cannot contact VM via host name:

        from a browser in

        That browser uses what DNS ? Maybe not pfSense so it couldn't know about the host over ride.

        Yes, all the browsers in my LAN use my pf box for DNS.

        @tknospdr said in Cannot contact VM via host name:

        If I enter the host name from a different subnet, I get a 'server dropped the connection' error.

        The device with that host name, does it allow connections coming in from your other local networks ?

        It does.

        So I found out that I had to create a bridge network connection in order for my VM and host to talk to one another.
        Everything seems to be talking correctly now.

        My next hurdle is to get the packages I built the VM for to work, but that's beyond the scope of this forum.

        For posterity, if you have TrueNAS and a VM, watch this video:
        Network Bridge in TrueNAS

        1 Reply Last reply Reply Quote 1
        2 out of 3
        • First post
          2/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.