OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: SOUK on December 19, 2021, 04:26:43 pm

Title: Home Assistant with DuckDNS / Lets Encrypt / OpnSense
Post by: SOUK on December 19, 2021, 04:26:43 pm
Guys, I've got Home Assistant setup and working via my Opnsense router, DuckDNS and Lets Encrypt, enabling me to remotely access my Home Assistant securely with encryption while I'm out and about (outside my home network), which is great.

I'd like to be able to access my personal ******@duckdns.org URL securely over my 'local network' too whilst maintaining the secure HTTPS certification.   I know it can be done via this router or pfsense but I just cant find a tutorial explaining the correct procedure.

Can anyone point me in the right direction please.   ;)

Title: Re: Home Assistant with DuckDNS / Lets Encrypt / OpnSense
Post by: bartjsmit on December 20, 2021, 08:59:24 am
Can anyone point me in the right direction please.   ;)

There isn't necessarily a right direction  :D

First option is split DNS. Add your duckdns.org record(s) in an authoritative zone to your local DNS.

Second option is to add hosts file entries to the workstation(s) on your internal network

Third option is to add a hairpin NAT (a.k.a. NAT reflection)

Bart...
Title: Re: Home Assistant with DuckDNS / Lets Encrypt / OpnSense
Post by: SOUK on December 20, 2021, 09:47:10 am
Hi Bart, thanks for your response you wonderful person you..  ;)

I enabled these three and it seems to have resolved my issue now:

Opnsense router> Firewall >>Settings>>>Advanced:


The TICKED the following:

(https://i.postimg.cc/JhLxJZv0/OpnSense.jpg)

Thank you.
Title: Re: Home Assistant with DuckDNS / Lets Encrypt / OpnSense
Post by: bartjsmit on December 20, 2021, 09:57:02 am
No problem; at least I'll not be the only one spending far too much time tinkering with Home Assistant over the holidays  8)
Title: Re: Home Assistant with DuckDNS / Lets Encrypt / OpnSense
Post by: AseKarlsson on February 19, 2024, 10:14:05 pm
Can anyone point me in the right direction please.   ;)

There isn't necessarily a right direction  :D

First option is split DNS. Add your duckdns.org record(s) in an authoritative zone to your local DNS.

Second option is to add hosts file entries to the workstation(s) on your internal network

Third option is to add a hairpin NAT (a.k.a. NAT reflection)

Bart...

Any good guide for this DuckDNS/Lets Encrypt/Home Assistant setup using OPNsense?

//Ase