Here are the requirements for the app with that install script. Again, I tried on several servers and the only one it worked smoothly was the oracle cloud with ports 80 443 open and free.If I am not mistaken, this is the reason for needing port 80 open:To install the service, you first download some files. Then you need to build it out. Once it is built, then you go to the website on port 80. Here there is a button to run an installation script. Once that is finished, now the website is secured on an nginx reverse proxy. So port 80 is initially needed to install. You can do without, but then you can't use the handy script.
If you now need to install another app using some install script (that for whatever reason needs port 80 during install)....You just configure the app/service in haproxy on port 80, so you can access the install script.After the installation is complete you simply change the port of the service in the haproxy server settings to the port the app has after installation.Dead simple.
Isn't this what I've been trying to do? What do you mean by configure the app in haproxy on port 80? In order for it to work, the domain needs to already be pointing to this app and accessible already from the outside on port 80. I can't do it internally. It's a web install script.
WarningIf you configure a port that is already in use, the configuration test will be successful but the start of HAProxy will fail silently. Please ensure that the used port is free - especially if the number conflicts with the web configuration of OPNsense.
No matter what I do, I can't seem to get activity into HAproxy. I think I might be having this issue:QuoteWarningIf you configure a port that is already in use, the configuration test will be successful but the start of HAProxy will fail silently. Please ensure that the used port is free - especially if the number conflicts with the web configuration of OPNsense.But I disconnected the camera that was intercepting port 80, and it still wont work. I must have 10-20 servers on the LAN that use port 80 443. What am I supposed to do? Shut them all down, and then enable haproxy?
A reverse proxy is a type of server that sits between a client and one or more servers, forwarding client requests to those servers. When a client makes a request to a website, for example, the request is first sent to the reverse proxy server, which then forwards the request on to the appropriate web server.The main difference between a reverse proxy and a basic port forward is that a basic port forward simply forwards traffic from one IP address and port number to another IP address and port number. A reverse proxy, on the other hand, can act as an intermediary, providing additional services such as load balancing, caching, SSL termination, and more.A reverse proxy can serve as a single point of contact for several different servers, distributing client requests across those servers and allowing them to work together to handle the load. In contrast, a basic port forward simply redirects traffic from one destination to another, without providing any additional functionality or benefits.Overall, a reverse proxy is a more advanced and flexible solution for managing connections between clients and servers, particularly in situations where a large number of servers need to be balanced and coordinated to handle incoming traffic efficiently.
I made the change I was suggesting above for the service1 condition. I changed it from SNI matches to "contains" and used "domain1.com" rather than *.domain1.com.
Now the counter shows activity in both servers as requested, and it is routing correctly from the right place.However, it still doesn't totally work, and for the server1 subdomains, I am getting a 526 error for invalid SSL certificate. So I believe the traffic is going to the right place, but something is missing.Should I have two SNI frontends? One for port 80 and another for 443?
I made a diagram first to help. Following your instructions, wouldn't I also have to create additional backends, rules, and servers since I am processing 80and 443 separately? I included my attempt in the picture.