<div dir="auto">Michael<div dir="auto"><br></div><div dir="auto">I did successfully turn off csrf_protection but the error persists. I can't complete the wizard.</div><div dir="auto"><br></div><div dir="auto">Herb</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 15, 2024, 10:29 PM Michael Stauber via Blueonyx <<a href="mailto:blueonyx@mail.blueonyx.it">blueonyx@mail.blueonyx.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Herbert,<br>
<br>
> Is there a way to turn off the BlueOnyx_CSRF_token from the command line?<br>
<br>
Yes, you can do so via CCEclient:<br>
<br>
[root@5209r ~]# /usr/sausalito/bin/cceclient<br>
100 CSCP/0.99<br>
200 READY<br>
find System<br>
104 OBJECT 1<br>
201 OK<br>
get 1<br>
102 DATA productBuild = "5209R"<br>
102 DATA NAMESPACE = ""<br>
102 DATA productIdentity = "20210202"<br>
102 DATA csrf_protection = "1"<br>
102 DATA CLASSVER = "1.2"<br>
102 DATA isRegistered = "0"<br>
102 DATA csrf_regenerate = "0"<br>
102 DATA CLASS = "System"<br>
102 DATA gateway = ""<br>
102 DATA GUIredirects = "1"<br>
102 DATA csrf_expire = "7200"<br>
102 DATA serialNumber = "5982477b-4364-49d3-aa4c-c8a49425da80"<br>
102 DATA domainname = "<a href="http://smd.net" rel="noreferrer noreferrer" target="_blank">smd.net</a>"<br>
102 DATA extra_ipaddr_IPv6 = ""<br>
102 DATA productName = "BlueOnyx 5209R"<br>
102 DATA productBuildString = "build 20210202 for a 5209R in en_US"<br>
102 DATA gateway_IPv6 = ""<br>
102 DATA nw_update = "1617838073"<br>
102 DATA extra_ipaddr = "&208.77.151.207&"<br>
102 DATA GUIaccessType = "HTTPS"<br>
102 DATA isLicenseAccepted = "1"<br>
102 DATA OID = "1"<br>
102 DATA productLanguage = "en_US"<br>
102 DATA productSerialNumber = ""<br>
102 DATA console = "0"<br>
102 DATA IPType = "VZBOTH"<br>
102 DATA productVendor = ""<br>
102 DATA dns = "&8.8.8.8&"<br>
102 DATA hostname = "5209r"<br>
102 DATA locales = "&en_US&da_DK&de_DE&es_ES&fr_FR&it_IT&ja_JP&nl_NL&pt_PT&"<br>
201 OK<br>
set 1 csrf_protection = "0"<br>
201 OK<br>
<br>
Explanation:<br>
<br>
As "root" start /usr/sausalito/bin/cceclient<br>
<br>
In it type "find System" and hit return.<br>
<br>
That will report the Object ID of the System object like this:<br>
<br>
104 OBJECT 1<br>
<br>
So in my case it is the Object with the ID 1. Yours could be a different <br>
number.<br>
<br>
Run a "GET 1" to see what key/value pairs the System object has. <br>
Somewhere in that output you will see this:<br>
<br>
102 DATA csrf_protection = "1"<br>
<br>
That's what we're looking for. So you now know that they key is named <br>
"csrf_protection" and that it has the value "1". To change it to "0" run <br>
this:<br>
<br>
SET <OID> csrf_protection = "0"<br>
<br>
Replace <OID> with the Object ID of your System object that we obtained <br>
via "Find System".<br>
<br>
When it goes well, cceclient will report this back:<br>
<br>
201 OK<br>
<br>
You can then press CTRL+C to exit cceclient and the GUI has <br>
CSRF-protection disabled.<br>
<br>
<br>
-- <br>
With best regards<br>
<br>
Michael Stauber<br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@mail.blueonyx.it" target="_blank" rel="noreferrer">Blueonyx@mail.blueonyx.it</a><br>
<a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx" rel="noreferrer noreferrer" target="_blank">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</blockquote></div>