Locked out of TrueNAS Scale GUI latest stable

Hi,

I have locked myself out accidentally by trying to restrict access. I managed to do this forgetting I was accessing it over my Tailnet and I put a restriction to allow only my IP address, which is locally 192.168.1.242. The TrueNAS server is at 10.10.160.6 and the Tailscale app on pfSense advertises the 10.10.160.0 network so I could access it with a web browser. However when I restricted it I lost access to the web GUI. I still have full SSH access to the VM running TrueNAS.

Is there a way for me to edit or delete a config file in TrueNAS to allow me to get back access to it?

frodan

Been a long time since I have had to do this but yes. TrueNAS stored all the configuration settings in /data/freenas-v1.db and if you have a backup you can use SSH to upload that backup to that location, reboot the TrueNAS and you should be good.

If you don’t have a backup in theory (try at your own rick) this should work:

use this as root to confirm what the IP restriction is

midclt call system.general.config | jq '{ui_allowlist, ui_address, ui_v6address}'

this command should clear it

midclt call system.general.update '{"ui_allowlist": []}'
midclt call system.general.ui_restart```

Hello Tom,

This worked perfectly, thank-you. I will rewatch some of your past TrueNAS videos to make sure I know exactly what to change and plan more carefully how I need to secure things.

frodan

1 Like