Unable to access web application using hostname when i'm connected through OpenVPN
-
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!
-
@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?
-
@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.localI think it's because I enabled dns resolver, and configured domain override
-
@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