Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Reverse proxy not working properly on opnsense.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Reverse proxy not working properly on opnsense. (Read 3268 times)
mkono87
Newbie
Posts: 36
Karma: 0
Reverse proxy not working properly on opnsense.
«
on:
January 19, 2021, 06:46:08 am »
So I have been using pfsense for a few years now but decided to try out opnsense. I was able to import a few settings from pfsense (dhcp, rules, Nat and ddns). Everythibg seemed fine but then realized that my hosted services behind my let's encrypt container (swag) on unraid is working as intended. The invalid error is showing as if opnsense is providing the cert
The let's encrypt container is on 81 and 444 which port forwarding is setup in nat 80-81 ect, exactly the same as it was on pfsense. I also have ddns running properly pulling in my ip. I don't remeber having to add any certs or whatever to the firewall itself.
Does anyone have an idea what I could be missing? I ran opnsense on the nano usb so I just booted pfsense back up and left it for the night. But it's working as it should.
Sent from my Mi 9T using Tapatalk
«
Last Edit: January 19, 2021, 06:48:46 am by mkono87
»
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Reverse proxy not working properly on opnsense.
«
Reply #1 on:
January 19, 2021, 08:53:12 am »
Not quite sure what error or problem you are seeing. I am running OPNsense behind an nginx reverse proxy (with LE cert) just fine
Logged
mkono87
Newbie
Posts: 36
Karma: 0
Re: Reverse proxy not working properly on opnsense.
«
Reply #2 on:
January 19, 2021, 03:14:16 pm »
Well that's great, so did I on pfsense and I know it shouldn't be a problem. When I check the invalid cert information in chrome it seems as if I trying to use a cert from opnsense rather than push to the lets encrypt container. You can see in the attached picture the Org in incorrect. Right now, while running opnsense, my domain points to the router gui.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Reverse proxy not working properly on opnsense.
«
Reply #3 on:
January 20, 2021, 01:01:37 am »
What you are seeing is the self-signed cert on OPNsense, so the connection is direct to the OPNsense webserver rather than through your reverse proxy
Either your port forwards are misconfigured or this is a NAT reflection issue. You can test the latter by trying to connect from outside your LAN - if you can connect to the reverse proxy from outside but not from within your LAN, there is a NAT reflection issue (either it is not enabled or the port forwards are not configured properly to work with it)
Logged
mkono87
Newbie
Posts: 36
Karma: 0
Re: Reverse proxy not working properly on opnsense.
«
Reply #4 on:
January 20, 2021, 11:18:16 pm »
Is NAT reflection not enabled by default? I didn't bother to check that so I will when I get a change to fire it up again.
Logged
mattbridges
Newbie
Posts: 3
Karma: 0
Re: Reverse proxy not working properly on opnsense.
«
Reply #5 on:
March 21, 2021, 08:53:58 pm »
Hi, did you manage to get this sorted? I have the exact same problem?
Logged
mkono87
Newbie
Posts: 36
Karma: 0
Re: Reverse proxy not working properly on opnsense.
«
Reply #6 on:
March 21, 2021, 09:12:39 pm »
Quote from: mattbridges on March 21, 2021, 08:53:58 pm
Hi, did you manage to get this sorted? I have the exact same problem?
It Was due to nat reflection not being enabled by default.
Sent from my Mi 9T using Tapatalk
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Reverse proxy not working properly on opnsense.