Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
I just update to 22.1 and HTTP_REFERER error
« previous
next »
Print
Pages: [
1
]
Author
Topic: I just update to 22.1 and HTTP_REFERER error (Read 7065 times)
juanjosegv
Newbie
Posts: 3
Karma: 1
I just update to 22.1 and HTTP_REFERER error
«
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
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: I just update to 22.1 and HTTP_REFERER error
«
Reply #1 on:
February 21, 2022, 06:00:01 pm »
Quote
<nohttpreferercheck>1</nohttpreferercheck>
<nodnsrebindcheck>1</nodnsrebindcheck>
Logged
juanjosegv
Newbie
Posts: 3
Karma: 1
Re: I just update to 22.1 and HTTP_REFERER error
«
Reply #2 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
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: I just update to 22.1 and HTTP_REFERER error
«
Reply #3 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)
«
Last Edit: February 22, 2022, 01:47:01 pm by Fright
»
Logged
franco
Administrator
Hero Member
Posts: 17675
Karma: 1613
Re: I just update to 22.1 and HTTP_REFERER error
«
Reply #4 on:
February 22, 2022, 01:30:16 pm »
Adjusting the /conf/config.xml on the wrong machine maybe? Stranger things have happened.
Cheers,
Franco
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: I just update to 22.1 and HTTP_REFERER error
«
Reply #5 on:
February 22, 2022, 01:35:27 pm »
and not uncommon
Logged
juanjosegv
Newbie
Posts: 3
Karma: 1
Re: I just update to 22.1 and HTTP_REFERER error
«
Reply #6 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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
I just update to 22.1 and HTTP_REFERER error