[SOLVED]: Proxing two servers through OPNSENSE

Started by morcom, July 19, 2016, 04:02:46 PM

Previous topic - Next topic
July 19, 2016, 04:02:46 PM Last Edit: July 19, 2016, 05:13:33 PM by morcom
Hi,

Thanks for nice product! It looks very promising...

I have a question related to possible use of HA Proxy.

Actually I have two Tomcat servers which I want to keep behind UTM.
So all traffic is monitored and eventually blocked if detected as intrusion attack.

One Tomcat server should be unsecured (server1) - second secured with SSL and login restrictions(server2). But - secured on Proxy level... eventually SSL on proxy level (I had that before working with Nginx).

Generally I want to use one WAN IP for this.

I have no issues to setup HAProxy using as frontend/backend to server1. Question is - is it possible to set up this in such a way that when calling port 80 - I would visit server1, but when calling port 443 with HTTPS - we would be redirected to server2?

I had this as well in Sophos UTM... I think is secured web services section - and it was looking like working solution. But not sure what I can do in Opnsense....

Thanks for any tips.

Michal...

Ok - looks like some firewalling issues.

Now works...

Mike

Hey Mike,

Welcome and thanks for checking back. :)


Cheers,
Franco