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

    Is this possible ?

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 1.6k 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.
    • V
      vronp
      last edited by

      Ok, let me try to lay out the scenario.

      Pfsense is configured to allow me to hit a server from my home IP.  No problem there.  Let's call that server:  server.blah.com

      If I am on the road, Pfsense is configured to let me vpn in and hit the same server if I use the IP number for server.blah.com on the LOCAL network.  Let's call it 172.28.1.99

      All of this works just fine.

      What I want to do is always use "server.blah.com" and not have to use the IP number when I am on the road and using the VPN.

      My understanding is that this is possible with pfsense.  Indeed, I have set the DHCP-Opt.: DNS-Server to the IP of the pfsense box and this IP does show up as the DNS server for the TAP network.

      But, how do I make the pfsense DNS server the "authoritative" server on my computer?  In other words, I need server.blah.com to resolve to 172.28.1.99 when I have the VPN established.  I don't want it to resolve to the public IP for server.blah.com

      I supposed this is a windows configuration (my laptop) issue?

      Can someone lend a hand?

      thanks

      1 Reply Last reply Reply Quote 0
      • V
        vronp
        last edited by

        Ok, I figured this out.

        I needed to configure the DNS forwarder to be authoritative for the blah.com domain.

        Also, on the same setup screen, I needed to set the local IP for server.blah.com.

        Now, I can use the fqdn if I am at the home office or on the road.

        I LOVE pfsense !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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