Access to webadmin impossible after setting IP addresses restrictions

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.1.5.1
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no

Describe your issue

after setting IP access restrictions in the webadmin, I am unable to connect to this webadmin anymore.
When I try to disable the IP restriction in CLI, with the command

yunohost settings set security.webadmin.allowlist.enabled -v False

I’ve got this message:

The filter key security.webadmin.allowlist.enabled has too many sub-levels, the max is 3.

I mention that I’ve put 5 IP ranges in CIDR notation before saving this configuration in the webinterface

How can I retrieve access to the webadmin?

Share relevant logs or error messages

no specific log

ok,
After searching deeply on the forum, I’ve found some useful informations.
firstly, the command to enable or disable IP access restriction was not good. it is:

sudo yunohost settings set security.webadmin.webadmin_allowlist_enabled -v False

and not

sudo yunohost settings set security.webadmin_allowlist_enabled -v False

So, after tyming the right command, I’ve been able to access webadmin again.

Then, I noticed that I hadn’t put the IPv6 ranges in the authorized addresses.
After doing that, everything went well.

Sorry for the noise.

1 Like