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

    OpenVPN and DHCP

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 815 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.
    • A
      Agonnazar
      last edited by

      I was doing some testing this morning after some connectivity issues last night and I using a laptop connected to my phone's hotspot to vpn in.  I ran an ipconfig /all and everything was fine until I looked at the listed DHCP server (192.168.59.254).  This is in the virtual ip range handed out to the vpn clients, but it is not the actual DHCP server.  The DNS server is pointing correctly to 192.168.58.105, which should also be what the DHCP is pointing at.

      Service/DHCP server/LAN is not enabled.

      I'm not sure what other info to provide, but please let me know if there is.

      1 Reply Last reply Reply Quote 0
      • J
        jammcla
        last edited by

        I just ran a ipconfig /all on mine as well and it did report the DHCP server as the last ip in the range, so i will assume that is normal.  DHCP is provided to VPN clients by the pfSense box and not forwarded to DHCP server on site.

        Can you describe the connectivity issues?  repeatable?  if it doesn't connect does the OpenVPN log say anything, log on the device as well as the pfsense log?

        Any conflicting networks?  a laptop on a home network with the same ip range as the range you are trying to go to will not work, for example.

        Firewall rules applied correctly?

        Does laptop connected to your phone hot spot work correctly?

        1 Reply Last reply Reply Quote 0
        • A
          Agonnazar
          last edited by

          The connectivity issues were remote users weren't able to log into any of the servers in the LAN.  They got a "server is not available" error.  All these were virtualized on one particular machine.  When trying to log in to the virtual machine itself via either the vSphere client or web client, the connection timed out.  I logged in via OpenVPN and managed to RDP into the DHCP server, then I could use the web client.  (I installed VMWare tools on the machines that didn't have them already and for some reason they had connectivity again.  Still working on why that happened, too.)

          The servers are now reachable as they were before, but the vSphere client and web client are still nonfunctional from outside the LAN.  I saw the DHCP address and thought that might have been my issue, but I'm guessing that it isn't.

          Time to figure out just what else could have made this happen.  I appreciate your time, jammcla.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.