1
18.7 Legacy Series / Re: Host small webserver on opnSense / add lighttpd vhost?
« on: October 11, 2018, 10:48:12 pm »Did you try Nginx Plugin?
So I got it working in a way - at least the website is being displayed when accessing the firewall from the internal network (I chose port 83 for nginx).
But for the life of me I can not figure out how to forward external requests for port 80 to port 83 internally.
Here's what I did:
- changed the management GUI settings to only listen on the LAN interface
- created a NAT port forwarding roule on interface WAN, ptotocol TCP, source address any, source port any, destination address WAN, destination port 80, redirect to the opensense internal IP on port 83
...but it does not work this way. I had this running on openWRT before, so I'm not exactly new to the principles involved, but it seems that there's something I'm missing.
edit: everything was correct, but I needed to set NAT reflection: Enable - now it works