Reverse proxy configuration help needed

Started by romanab1, February 26, 2021, 11:03:42 AM

Previous topic - Next topic
Dear All,
I have an IIS server running on VM (hostname- VM06) and locally accessible via - https://sitea.vm06lan.com https://siteb.vm06lan.com or https://sitec.vm06lan.com IIS has configured for multiple sites.
Now I want to access this server from the internet via
       https://sitea.mydomain.com/
       https://siteb.mydomain.com/
       https://sitec.mydomain.com/

What should be the easy way to configure Reverse proxy : haproxy or nginx?  is there any setp by step document with screenshot or video available to configure Reverse proxy into OPNSense?

Only if there was a place you could look uo the documentation for opnsense....

One of my posts here lays out the 4 components that need to be configured using NGINX.  All my examples though are for the backend apache being unencrypted.  NGINX having TLS /certs forwarding to backend on 80.  https://forum.opnsense.org/index.php?topic=21686.0

What you need to determine is how SSL is to be configured.
Given you mentioned its accessed via https internally I'm figuring you have cert/TLS on IIS.
If so your upstream should have the TLS enabled & Location w/ HTTPS only.
The upstream server specifying IP and 443 (assuming your IIS port?)

Then you need to look at the NGINX http server.  Will have TLS enabled too or just listen on 80 without TLS/cert?  In one of my examples I show HTTP server w/ TLS/cert.  Just following the matching associations.

You may also need to see if IIS requires anything to be done with header / URL re-write.