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

    Unable to access web application using hostname when i'm connected through OpenVPN

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 2 Posters 382 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
      b0sman
      last edited by

      I have a pfsense firewall configured, also a web application located on a web server with ip 10.0.0.12, (hostname is PC01), I can access my web application on my local network using the hostname, but when I'm connected through VPN, I can only access my web application using the ip 10.0.0.12

      DNS server: 10.0.0.11

      How to fix this?

      Thank you in advance!

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @b0sman
        last edited by

        @b0sman for starters make sure what your trying to access via name is a FQDN, not just pc01.. Why you could access that local is your just broadcasting for that name, or mdns is answering? for pc01.local

        What domain is pfsense using, home.arpa is what a recent version would default too. If you do a dig or nslookup to your dns 10.0.0.11 for pc01.yourdomainname.tld does that respond with 10.0.0.12

        If you can not query 10.0.0.11 for a fqdn, then you prob have an issue with ACL for unbound not allowing whatever your client IP is to ask 10.0.0.11 or firewall rule?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        B 1 Reply Last reply Reply Quote 0
        • B
          b0sman @johnpoz
          last edited by

          @johnpoz when I do dns lookup for pc01.mydomain.local no results are found,
          but when I use 10.0.0.12 for lookup it gets the pc01.mydomain.local

          I think it's because I enabled dns resolver, and configured domain override

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @b0sman
            last edited by

            @b0sman can you query anything from your vpn client to your 10.0.0.11?

            say pfsense own name? When you add a vpn tunnel network.. I don't believe that adding a vpn tunnel network adds that to the unbound default ACLs

            Also if you setup some domain override to go lookup this pc01.mydomain.local, that would be rebind if the answer is a rfc1918 IP.

            Also .local is not a good choice for local tld, since .local is used by mdns.. I would suggest moving to better choice, either use home.arpa locally, or the new one is .internal

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

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