OPNsense Forum

English Forums => General Discussion => Topic started by: morcom on July 19, 2016, 04:02:46 pm

Title: [SOLVED]: Proxing two servers through OPNSENSE
Post by: morcom on July 19, 2016, 04:02:46 pm
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...
Title: Re: Proxing two servers through OPNSENSE
Post by: morcom on July 19, 2016, 05:13:09 pm
Ok - looks like some firewalling issues.

Now works...

Mike
Title: Re: [SOLVED]: Proxing two servers through OPNSENSE
Post by: franco on July 19, 2016, 11:42:49 pm
Hey Mike,

Welcome and thanks for checking back. :)


Cheers,
Franco