This page walks you through restoring PacketMole on a router that was factory-reset back to GL.iNet defaults.
What you need
- The router, plugged into power and connected to the internet via its WAN port.
- A Mac, Linux, or Windows computer with an SSH client (Terminal or PowerShell).
- About 10 minutes, plus the wait for support's reply in step 2.
Step 1 — Connect to the router
Plug your computer into one of the router's LAN ports, or join its default Wi-Fi network (for the Away unit only). In a browser, visit http://192.168.8.1 and set a new admin password when prompted.
Step 2 — Get the current fingerprint from support
Email support@packetmole.com with your unit's serial number (on the unit's sticker) and say you are running a recovery. We'll reply with the recovery script's current fingerprint: a 64-character code. Don't run the script without it.
Older setup cards print a "Recovery script sha256" value. The script has been updated since many of those cards were printed, so that value may no longer match. Use the one support sends you.
Step 3 — SSH in, check, and reinstall
Open a terminal and run:
ssh root@192.168.8.1
# enter the password you just set
curl -fsSLo /tmp/recover.sh https://updates.packetmole.com/recover.sh
sha256sum /tmp/recover.sh # compare against the fingerprint support sent you
sh /tmp/recover.sh # only if it matches exactly
If ssh shows "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" This is expected if this computer has connected to either PacketMole unit before, including this one before it was reset (both units use the same address, 192.168.8.1). While your computer is connected directly to your own PacketMole unit, type ssh-keygen -R 192.168.8.1 on your computer (not inside the router), then run ssh root@192.168.8.1 again and type yes when it asks whether to continue connecting. This works the same in Terminal on a Mac or in PowerShell on Windows.
Download the script, check it, then run that same file. Don't pipe the download straight into sh: the fingerprint check only protects you if it happens before the script runs. If the fingerprint doesn't match, stop and reply to support.
When it matches, the script downloads the latest PacketMole software, checks its digital signature before installing it, and reboots the unit (about 90 seconds).
Away unit only: just before it restarts, the script prints a new Wi-Fi name and password (on lines starting TRAVEL_SSID and TRAVEL_WPA_PASSWORD). Write them down before the window closes. The Wi-Fi name and password on your setup card no longer apply.
Step 4 — Re-link to Tailscale
After the reboot, visit http://192.168.8.1 again (Away unit on Wi-Fi: first join the new Wi-Fi name you wrote down). You'll see the PacketMole setup page. Click "Sign in with Tailscale" and complete the login flow just like you did the first time. For the Home unit, you'll also need to re-approve its route in the Tailscale admin console. If the sign-in button stays greyed out, reply to support and we'll send you a sign-in link.
Still stuck?
Email support@packetmole.com with the serial on the unit's sticker and we'll help.