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

The local domain does not work on the local network.

Scheduled Pinned Locked Moved DHCP and DNS
7 Posts 2 Posters 2.0k Views
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.
  • B
    bars
    last edited by Dec 18, 2021, 8:53 AM

    Hello.
    There is a server with proxmox, on the server vpska are raised (pfsese, 2 vps linux and 1 vps windows).
    Local domain mydom.lan.
    Local network 10.10.2.0/24.
    On pfsense enabled :

    • dhcp server.
    • dns resolver.
    • openvpn is running.

    dns resolver
    0.png

    dhcp server
    1.png

    Pings in the local network by ip address work.
    But pings in the local network by domain do not work.
    If you ping servers by domain from a pfsense server on the local network, pings work.
    Domain ping from Linux server, ping does not work.
    Ping in windows works by server name.
    Windows ping does not work across the domain.
    Windows ping serv1c.mydom.lan not work.
    Windows ping serv1c work.

    if I connect to the network via vpn, the virtual network 10.10.3.0/24 will appear on my computer.
    I try ping on the domain, it works.
    I can ping servers on the local network.

    Linux vps resolv.conf

    cat /etc/resolv.conf 
    domain mydom.lan
    search mydom.lan
    nameserver 10.10.2.2
    

    linux domain zone view.

    nslookup serv1c.mydom.lan
    Server:         10.10.2.2
    Address:        10.10.2.2#53
    
    ** server can't find serv1c.mydom.lan: REFUSED
    

    pfsense domain zone view.

    nslookup serv1c.mydom.lan
    Server:         127.0.0.1
    Address:        127.0.0.1#53
    
    Name: serv1c.mydom.lan
    Address:         10.10.2.11
    

    Please help me solve the problem.

    P 1 Reply Last reply Dec 18, 2021, 9:55 AM Reply Quote 0
    • P
      Patch @bars
      last edited by Patch Dec 18, 2021, 9:56 AM Dec 18, 2021, 9:55 AM

      @bars
      Add a static DNS entry to pfsense for your Proxmox server in addition to the static IP address set in Proxmox. See https://forum.proxmox.com/threads/host-network-access-lost-after-proxmox-upgrade-7-0-to-7-1-router-vm-with-pass-through-nic.100091/#post-435007

      Note I’m aware this should not be required however it makes it work in practice for me.

      B 1 Reply Last reply Dec 18, 2021, 10:03 AM Reply Quote 0
      • B
        bars @Patch
        last edited by Dec 18, 2021, 10:03 AM

        @patch
        Not understood.
        Where and what to add?

        P 1 Reply Last reply Dec 18, 2021, 10:46 AM Reply Quote 0
        • P
          Patch @bars
          last edited by Patch Dec 19, 2021, 12:18 AM Dec 18, 2021, 10:46 AM

          @bars said in The local domain does not work on the local network.:

          Where and what to add?

          From the link provided

          Where your router is a VM running on a Proxmox hypervisor, so when Proxmox boots there is not route to the Internet, no DHCP server, and no DNS.

          In Proxmox 7.0

          1. Set the IP address of Proxmox in Proxmox. Nothing else needs to by done.

          In Proxmox 7.1 for me to be able to ping the hypervisor and for the hypervisor to be able to download updates, the work around I have used is

          1. Leave the Hypervisor IP address set to a fixed value in Proxmox. This is normally set during Proxmox installation but can be changed by Proxmox -> Datacentre -> <pve> -> Network -> vmbr0 -> Edit -> IPv4/CIDR.

          2. In pfsense set a static IPv4 address for Proxmox. Login to pfsense -> Services -> DHCP Server -> Select the interface you access Proxmox from -> Scroll to the bottom of the page to "DHCP Static Mappings for this Interface" -> Add -> enter Proxmox IPv4 address and it's mac address.

          Step 1 is a normal requirement. Step 2 is a work around for Proxmox 7.1 running the networks router (which means when Proxmox boots there is no DHCP server, DNS, or gateway to the Internet). There are probably other ways of working around this issue, which I would prefer as I don't like programs interacting like this. However I'm using this work around until a better solution is found. Btw I pass through all NIC pfsense uses however when making a pfsense VM without pass through made no difference the this behavior.

          Edit: Updated the Proxmox 7.1 work around to make it clearer

          B 1 Reply Last reply Dec 19, 2021, 7:19 AM Reply Quote 0
          • B
            bars @Patch
            last edited by Dec 19, 2021, 7:19 AM

            @patch
            I solved the problem.
            The gateway was registered in the LAN interface, removed it, left it only on the external interface and everything worked.

            LAN interface -> IPv4 Upstream gateway -> none
            
            P 1 Reply Last reply Dec 19, 2021, 7:25 AM Reply Quote 0
            • P
              Patch @bars
              last edited by Dec 19, 2021, 7:25 AM

              @bars
              Well done.
              Reading through what your issue was again, my line of thought was way off as it was not just a Proxmox hypervisor network problem.

              Btw
              If you put a gateway on an interface, pfsense will make it a WAN interface (ie it becomes a Gateway pfsense can use). That is distinct from all other interfaces where pfsense implements a router function and provides a Gateway for pfsense's clients on your network.

              B 1 Reply Last reply Dec 19, 2021, 7:29 AM Reply Quote 0
              • B
                bars @Patch
                last edited by Dec 19, 2021, 7:29 AM

                @patch
                So it is planned that pfsense will become the gateway for the VPS to proxmox.
                In the proxmox, in the VPS settings, I initially prescribed dns from pfsense.
                Thanks for help!

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received