When the internet connection goes down, a phone plugged into the firewall with its USB or USB-C cable can take over. The firewall uses the phone only while the main connection is down, and switches back by itself when the main connection answers again. While the main connection works, the phone's data plan is not used.

Android phones and iPhones both work. The phone shares its mobile data with the firewall the same way it would with a laptop: USB tethering on Android, Personal Hotspot on an iPhone.

At a glance:

Step Where What
1 On the phone Plug it into the firewall; turn on USB tethering (Android), or Trust and Personal Hotspot (iPhone)
2 Network › Interfaces, zones & routes › Backup internet (phone) Check that the phone shows as sharing its connection, then Use a phone as backup internet
3 Pending changes Commit (with the safety rollback on) and press Keep these settings

The firewall does the rest. It checks the main connection every 5 seconds and, after about 15 seconds without an answer, sends the traffic through the phone. About 30 seconds after the main connection answers again, it switches back.

Step 1: Connect the phone

Use the phone's own charging cable (a charge-only cable carries no data). Any USB port on the firewall works, and the firewall charges the phone while it is plugged in.

Android:

  1. Plug the phone in.
  2. On the phone, open Settings › Network & internet › Hotspot & tethering (on Samsung: Settings › Connections › Mobile Hotspot and Tethering).
  3. Turn on USB tethering. The switch is only shown while the cable is plugged in.

iPhone:

  1. Plug the iPhone in and unlock it.
  2. The first time, the iPhone asks Trust This Computer? Tap Trust and enter the passcode. The firewall keeps the pairing, so the iPhone asks only once.
  3. Open Settings › Personal Hotspot and turn on Allow Others to Join. Leave the screen open the first time, until the firewall shows the iPhone as sharing its connection.

Some phones turn tethering off after a restart or after some time unplugged. If the phone is to stay connected as a permanent backup, check after a restart of the phone that USB tethering or Personal Hotspot is still on.

Step 2: Turn on backup internet

Go to Network › Interfaces, zones & routes and find Backup internet (phone).

Press Use a phone as backup internet. This puts into the pending changes:

Step 3: Commit

Open the pending changes, review them, and commit. Use the safety rollback and press Keep these settings when the page comes back.

After the commit, the panel shows Standby: ready to take over, and for IPv4 (and IPv6, if both your internet provider and the phone have it) the phone's route under Backup route.

After the commit the panel shows Standby: ready to take over: the main connection answers, and the phone's route waits. (The picture is from a test firewall with a simulated phone, so no phone model is listed.)

Backup internet on standby: the main connection answers, the phone's route waits
Backup internet on standby: the main connection answers, the phone's route waits

What happens during an outage

From the command line, show backup-internet shows the same state.

Turning it off

Unplugging the phone needs no change: the firewall notices it, and uses it again when it is plugged back in with tethering on.

Good to know

Screenshots pending

These pictures are taken on real hardware (an iPhone on the NUC) and are added when the phone has been tested there: