OPNsense Forum

English Forums => General Discussion => Topic started by: fictitiousexistence on November 02, 2020, 02:55:46 PM

Title: Local DNS Forwards in Browser to Opensense
Post by: fictitiousexistence on November 02, 2020, 02:55:46 PM
Hi All, Hopefully Im posting this in the right section.

I have my opensense box at 10.10.1.1:81.

I am using the overrides section in unbound dns to add local dns entries for my webserver at 10.10.1.2.

When pinging the hostname of the webserver, it resolves to the correct ip.

However, when i try to go to the hostname in the browser it seems to forward to the opensense box on port 81 and states about a possible dns rebind attack.

Did I misconfigure something? Never had this occur in pfsense before.

Thanks!
Title: Re: Local DNS Forwards in Browser to Opensense
Post by: lfirewall1243 on November 02, 2020, 07:27:27 PM
Quote from: fictitiousexistence on November 02, 2020, 02:55:46 PM
Hi All, Hopefully Im posting this in the right section.

I have my opensense box at 10.10.1.1:81.

I am using the overrides section in unbound dns to add local dns entries for my webserver at 10.10.1.2.

When pinging the hostname of the webserver, it resolves to the correct ip.

However, when i try to go to the hostname in the browser it seems to forward to the opensense box on port 81 and states about a possible dns rebind attack.

Did I misconfigure something? Never had this occur in pfsense before.

Thanks!
Take a screenshot of your NAT Rules
Title: Re: Local DNS Forwards in Browser to Opensense
Post by: fictitiousexistence on November 04, 2020, 04:29:40 AM
Hi. Are you looking for the port forward section? I have 2 custom rules for port 80,443 pointing to my webserver, which work fine. The other sections under Nat do not have anything.


Thanks