OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: vikozo on June 20, 2019, 08:13:35 AM

Title: nginx reverse Proxy help - example needed
Post by: vikozo on June 20, 2019, 08:13:35 AM
Hello

i have my Own DNS/WEB/Mail Server behind opnSense (DMZ).
All the Service are on a singel-VM. Testpage www.kozo.ch

I solved this with NAT port forwarding an some rules in the Firewall too, and it works.

Now on another VM i installed Gitlab with a Privat IP of the DMZ Range - from the LAN it works fine so far.

the wish is to make it open reachable like
gitlab.kozo.ch

my idea is to use in opnSense the nginx Reverse Proxy to use. But can't find out how the outside-world should get the connection.
In  Services: Nginx: Configuration Upstream Server i did just add the privat-IP of the VM and port 80

but i can't find out how to go further, any help please

- - - - -- - - - -
Versions
OPNsense 19.1.9-amd64
FreeBSD 11.2-RELEASE-p10-HBSD
LibreSSL 2.8.3
Title: Re: nginx reverse Proxy help - example needed
Post by: fabian on June 20, 2019, 08:51:22 AM
create an upstream, then add the upstream to a location, and then add the location to a HTTP server. Then reload the server and it should be up and running.
Title: Re: nginx reverse Proxy help - example needed
Post by: vikozo on June 20, 2019, 02:57:46 PM
LOL that sound easy! will try it this way  :-\