Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Stuck on web server setup
« previous
next »
Print
Pages: [
1
]
Author
Topic: Stuck on web server setup (Read 2176 times)
newbee
Newbie
Posts: 18
Karma: 0
Stuck on web server setup
«
on:
August 06, 2021, 12:00:04 pm »
Hello
So i finally got opnsense up and running last week after nights of being stuck. meaning internet is passing through. Now i am trying to get the the webserver running.
Think im getting in a tangle. Im also getting this message for the main domain pointing at my ip:
"A potential DNS Rebind attack has been detected.
Try to access the router by IP address instead of by hostname."
I have made a VMs for my domains to be hosted and require reverse proxy as only have 1 ip. I installed the nginx plugin for opensense. Tried following online tuts to set it up. I then installed nginx in on the linux VM.
I only ever used apache with proxy and then nginx in docker. Now looks like i should use HaProxy in opnsense then nginx in the vm?
tried not to ask for hemp(sry ment help) but its been a week.
Thanks for any guidance
«
Last Edit: August 06, 2021, 12:10:47 pm by newbee
»
Logged
RamSense
Hero Member
Posts: 594
Karma: 10
Re: Stuck on web server setup
«
Reply #1 on:
August 06, 2021, 12:29:08 pm »
if your question is to solve: ""A potential DNS Rebind attack has been detected."
than you can set Firewall->settings->advanced: under Network Address Translation
check/enable all 3:
Reflection for port forwards
Reflection for 1:1
Automatic outbound NAT for Reflection
and it should work.
an other method is to change the specific portforward rule and change "NAT reflection" to enable
Logged
newbee
Newbie
Posts: 18
Karma: 0
Re: Stuck on web server setup
«
Reply #2 on:
August 06, 2021, 12:45:22 pm »
Hi
Yes not clear in my question here.
1. Just change the settings you suggested. Same error. I did notice i have FIREWALL>NAT>PORTFORWARD it as one entry saying "no redirect (green !)"
2. Use Haproxy or nginx on opensense
Thank you
Logged
RamSense
Hero Member
Posts: 594
Karma: 10
Re: Stuck on web server setup
«
Reply #3 on:
August 06, 2021, 02:23:44 pm »
is it with a domain name?
and have you placed the domain name in:
System -> Settings -> administration -> Alternate Hostnames -> "your-domain-name"
there is also the option DNS Rebind Check
what can be enabled. I did not have to, but maybe in your configuration?
«
Last Edit: August 06, 2021, 02:32:00 pm by RamSense
»
Logged
newbee
Newbie
Posts: 18
Karma: 0
Re: Stuck on web server setup
«
Reply #4 on:
August 06, 2021, 05:17:44 pm »
Hi
Yes, so we have many domain names pointing at 1 fixed IP. Then into opnsense serving VMs in ESXI. so need to point to the ip address of the VM and add certs.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Stuck on web server setup