OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: juanjosegv on February 21, 2022, 01:05:16 PM

Title: I just update to 22.1 and HTTP_REFERER error
Post by: juanjosegv on February 21, 2022, 01:05:16 PM
I just update to 22.1 version and after that I can not enter via webgui:

Error message:
The HTTP_REFERER "https://myAWS-elasticIP/" does not match the predefined settings. You can disable this check if needed under System: Settings: Administration.

I can access via ssh, is there a way to solve this problem via the shell?

I've tried to do this by editing the file /usr/local/etc/config.xml and in the <webgui> section add the tag <nohttpreferercheck> as follows but that not work:

<webgui>
      <protocol>https</protocol>
      <nohttpreferercheck>1</nohttpreferercheck>
</webgui>

Thanks
Title: Re: I just update to 22.1 and HTTP_REFERER error
Post by: Fright on February 21, 2022, 06:00:01 PM
Quote<nohttpreferercheck>1</nohttpreferercheck>
<nodnsrebindcheck>1</nodnsrebindcheck>
Title: Re: I just update to 22.1 and HTTP_REFERER error
Post by: juanjosegv on February 22, 2022, 10:45:49 AM
What do you mean? Like this?

<webgui>
      <protocol>https</protocol>
      <nohttpreferercheck>1</nohttpreferercheck>
      <nodnsrebindcheck>1</nodnsrebindcheck>
</webgui>

Like this do not work for me. The same error continues.

I have also tried at the FreeBSD level:

touch /tmp/disable_security_checks
chflags schg /tmp/disable_security_checks

But it also doesn't work
Title: Re: I just update to 22.1 and HTTP_REFERER error
Post by: Fright on February 22, 2022, 01:28:34 PM
sorry, don't know where I was looking. nohttpreferercheck flag is correct for this error. should work imho (just tested)
Title: Re: I just update to 22.1 and HTTP_REFERER error
Post by: franco on February 22, 2022, 01:30:16 PM
Adjusting the /conf/config.xml on the wrong machine maybe? Stranger things have happened. ;)


Cheers,
Franco
Title: Re: I just update to 22.1 and HTTP_REFERER error
Post by: Fright on February 22, 2022, 01:35:27 PM
 ;D and not uncommon
Title: Re: I just update to 22.1 and HTTP_REFERER error
Post by: juanjosegv on February 24, 2022, 02:40:18 PM
OMG. I was editing the wrong file. The config.xml file located at /usr/local/etc instead of the file located at /conf

Now works!!
Thanks