I am quite new to opnsense, moved from clearos to opnsense so on a crash course " how to configure opnsense".
I have configured ha_proxy to forward www.familie-dokter.net to a server on my lan. That works just fine. Now I also would like to use that same " external address" on my lan clients. That appeared to work, but then I changed the lan ip-address of the webserver (and probably other settings too) and now I can't get it to properly function again.
My network setup is quite simple:
(https://i.ibb.co/3f1bgHG/network.png) (https://ibb.co/WDnXm1q)
Connecting to my webserver from the internet works (the blue line, so ha_proxy works, even after lan ip change).
Connecting to my server from the lan does not work (the red line)
I have enabled:
(https://i.ibb.co/BrVjKnq/NAT.png) (https://imgbb.com/)
What am I doing wrong?
Diagrams definitively help. It would be useful to explain what happens but I'd start with DNS, does the FQDN get resolved at your clients?
I wanted to show you this output:
> dig www.familie-dokter.net +short
82.197.218.159
Which triggered me to try a dns record that points www.familie-dokter.net to the WAN address of opnsense:
>dig www.familie-dokter.net +short
192.168.1.5
And now it does work. But somehow leaving me more confused: I had tried this already...but hey: it does work :-D
Thanks for your reply!