Skip to main content
Security2 min read

Recover local access

Use host access or a temporary unlock file, then restore protection.

On this page

Local recovery escape hatches

If your internet connection goes down while Require secure access is enabled, two recovery methods can help restore access when you are locked out of your own Node-RED host:

Scroll sideways to view all columns.

Escape hatchHow it works
Loopback access (127.0.0.1 / ::1)Requests originating from loopback on the host itself are always allowed—including SSH port forwarding.
Unlock sentinel file (.nr-connect-unlock)Creating an empty .nr-connect-unlock file in your Node-RED user directory immediately bypasses direct-access restrictions without restarting Node-RED.
Option 1: SSH port forward (recommended)bash
# Forward local port 1880 to the host's loopback interface
ssh -L 1880:127.0.0.1:1880 pi@your-nodered-host
# Then open http://127.0.0.1:1880 in your browser
Option 2: Temporary unlock file (no restart needed)bash
# Bypass Require secure access immediately
touch ~/.node-red/.nr-connect-unlock

# Remove the file once recovery is finished
rm ~/.node-red/.nr-connect-unlock

Restore protection after recovery

Create the unlock file only in the actual Node-RED user directory; in a typical container this is /data. SSH forwarding to the host’s loopback may still traverse a Docker bridge, so use the container’s recovery procedure in that case.

Remove the unlock file when finished and confirm direct LAN access is restricted again. A reverse proxy forwarding traffic through loopback can look like local access; account for that when designing your host network.