A Bash-based systemd service to automatically reboot RAX75 (AX5400) routers on a schedule. This script handles authentication against the web interface (which uses a multi-step challenge), triggers the reboot, and verifies the result.
Before installing, ensure your environment is configured to talk to the router securely.
The web interface expects to be accessed via www.routerlogin.net.
- Option A (Internal DNS): Add an A record on your local DNS server for
www.routerlogin.netpointing to your router's IP (e.g.,192.168.1.1). - Option B (/etc/hosts): Add the entry manually to the machine running this script:
192.168.1.1 www.routerlogin.net 192.168.1.1 routerlogin.net
The router uses a self-signed certificate for www.routerlogin.net. If you set INSECURE=0 in the config (recommended), you must trust this certificate.
To install the certificate on Ubuntu/Debian:
# 1. Fetch the certificate
echo -n | openssl s_client -connect www.routerlogin.net:443 -servername www.routerlogin.net \
| openssl x509 -outform PEM > /usr/local/share/ca-certificates/rax75_web.crt
# 2. Update the trust store
sudo update-ca-certificates-
Clone the repository:
git clone https://github.com/chriv/rax75_rebooter.git cd rax75-rebooter -
Configure credentials: Copy the sample config and edit it with your router password.
cp config.env.sample config.env nano config.env
Note:
config.envis excluded from git to protect your password. -
Run the installer:
chmod +x setup.sh rebootrax75.sh sudo ./setup.sh
The installer will:
- Perform a "Dry Run" to verify connectivity and credentials.
- Install the script to
/usr/local/bin/rebootrax75. - Install the config to
/etc/rebootrax75/config.env(Permissions 0600). - Enable and start the systemd timer.
Check Status:
systemctl list-timers --all | grep rebootrax75Manual Run:
sudo systemctl start rebootrax75.serviceView Logs:
journalctl -u rebootrax75.service