Two URLs keep your ufw allowlist current as your IP changes — SSH, HTTPS, databases, admin panels, anything you want to gate. Free, scriptable, and built by operators.
Solve the captcha and we hand you an auth URL and a server URL. No account needed.
Drop the server URL into a cron / poll on your box. It reads the current registered IP.
Hit your auth URL from any browser; your IP registers and ufw updates within the poll window.
Once you've got your pair, drop these onto your box. The shell script polls every couple of minutes and adds your current IP to ufw as you move around.
Save the authentication URL in your browser. Click it any time your IP changes — within the poll window your server's ufw rule will be updated.
Save as /usr/local/bin/ipauth-update.sh:
#!/bin/sh
CURIP=$(curl --max-time 5 -s "https://ipauth.net/serverquery/?key=YOUR_SERVER_KEY" \
| grep "success" | cut -d ":" -f 3 | cut -d "," -f 1)
if [ ! "x$CURIP" = "x" ]; then
ufw allow from "$CURIP" to any port 22 comment "ipauth"
fi
Then add a cron entry (every 2 minutes):
# crontab -e */2 * * * * /usr/local/bin/ipauth-update.sh
Solve the captcha and we'll generate your auth URL + server URL. No account required.