Thank you for the tutorial. I use Exchange 365 and am wondering what the use cases for this are?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteAlso you never mentioned anything about pi-hole in your previous posts so for the future I'll pass on a great tip from the Zen of Python:
Explicit is better than implicit
C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
C:\>nslookup opnsense.mike0000.dynprovider.com
Server: pi.hole
Address: 192.168.5.95
Non-authoritative answer:
Name: mike0000.dynprovider.com
Address: [WAN IP ADDRESS]
Aliases: opnsense.mike0000.dynprovider.com
C:\>nslookup mike0000.dynprovider.com
Server: pi.hole
Address: 192.168.5.95
Non-authoritative answer:
Name: mike0000.dynprovider.com
Address: [WAN IP ADDRESS]
C:\>nslookup mike0000.dynprovider.com
Server: pi.hole
Address: 192.168.5.95
Non-authoritative answer:
Name: mike0000.dynprovider.com
Address: [WAN IP ADDRESS]
C:\>nslookup opnsense.mike0000.dynprovider.com
Server: pi.hole
Address: 192.168.5.95
Name: opnsense.mike0000.dynprovider.com
Address: 192.168.5.1
C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
C:\>nslookup opnsense.mike0000.dynprovider.com
Server: UnKnown
Address: 172.20.10.1
Non-authoritative answer:
Name: mike0000.dynprovider.com
Address: [WAN IP ADDRESS]
Aliases: opnsense.mike0000.dynprovider.com
C:\>nslookup mike0000.dynprovider.com
Server: UnKnown
Address: 172.20.10.1
Non-authoritative answer:
Name: mike0000.dynprovider.com
Address: [WAN IP ADDRESS]
QuoteDoes that DNS record resolve to your public IP?Checking with ping and tracert the dynamic dns name (mike0000.dynprovider.com) resolves to my WAN IP. Same for a subdomain (opnsense.mike0000....)
QuoteIf so you need to activate NAT loopbackb or create a DNS override for the same hostname that resolves to an internal IP where webui (or HAProxy) is listening.How can I create the DNS override to resolve that hostname to an internal IP? I went to Services --> Unbound DNS --> Overrides and added an entry under both Host Overrides as well as Domain Overrides pointing at the IP, but still does not work (after restarting the service).
user@OPNsense:~ $ wget --save-headers http://nas.mydomain.com:8080
--2023-01-08 12:47:22-- http://nas.mydomain.com:8080/
Resolving nas.mydomain.com (nas.mydomain.com)... 192.168.5.60
Connecting to nas.mydomain.com (nas.mydomain.com)|192.168.5.60|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 580 [text/html]
Saving to: 'index.html'
index.html 100%[=====================================================================================>] 580 --.-KB/s in 0s
2023-01-08 12:47:22 (139 MB/s) - 'index.html' saved [580/580]
user@OPNsense:~ $ wget --save-headers https://nas.mydomain.com
--2023-01-08 13:01:21-- https://nas.mydomain.com/
Resolving nas.mydomain.com (nas.mydomain.com)... 192.168.5.60
Connecting to nas.mydomain.com (nas.mydomain.com)|192.168.5.60|:443... connected.
ERROR: cannot verify nas.mydomain.com's certificate, issued by 'CN=R3,O=Let\'s Encrypt,C=US':
Unable to locally verify the issuer's authority.
To connect to nas.mydomain.com insecurely, use `--no-check-certificate'.
user@OPNsense:~ $ wget --save-headers https://mydomain.com
--2023-01-08 13:13:59-- https://mydomain.com/
Resolving mydomain.com (mydomain.com)... 185.176.xxx.xxx [WAN IP]
Connecting to mydomain.com (mydomain.com)|185.176.xxx.xxx [WAN IP]|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2023-01-08 13:13:59 ERROR 503: Service Unavailable.