I got a certificate error, the certificate from opnsense is being used. Logically the common name is invalid.So I changed the certificate back to the self signed one from installation and same error, only the message changes (certificate is now selfsigned).
header from the reverseproxy (e.g. HSTS) are passed throught, only the certificate is modified
the old one I don't have this problem because in front of my opnsense was a reverseproxy from the company from which I got the Internet (the reverseproxy overwrites the certificate I think). So the way for a request was: company router->company reverseproxy->opnsense (my router)->reverseproxy (mine, nginx)->webserver.
But when I take a look at https://docs.opnsense.org/manual/nat.html, I don't get it, why nat reflection solves my problem.
NAT reflection: When a client on the internal network tries to access another client, but using the external IP instead of the internal one (which would the most logical), NAT reflection can rewrite this request so that it uses the internal IP, in order to avoid taking a detour and applying rules meant for actual outside traffic.
HSTS don't show up in the console. I saw it throught the message for an invalid certificate from the browser. He says that HSTS is on and I can't create an exception for that website.
When I forced to trust, I saw the normal website, only with an invalid certificate.
I will use the external IP, to pass my nginx and see the website with the right certificate. Or is it vice versa?
isn't that what you were trying to achieve? access local server by firewall public (instead of using split DNS)?without reflection (or manual hairpinning) traffic from the internal client is not tranlated and therefore is routed directly to the external interface of the OPN (in this case, to port 443, where the gui is waiting for it). this was not required before the apartment was changed, as then the traffic really left the OPN, reached the company's equipment and returned with the source address of the company's reverse proxy.
did not quite understand the question. please explain
I want to use the external over the internal address.