Turning a Sophos AP55C into a Backup WAN with OpenWrt

How I flashed a retired Sophos AP55C access point with OpenWrt to act as a Wi-Fi backup WAN via an iPhone hotspot, and the configuration pitfalls I hit along the way.

When my landline internet provider has an outage, the whole homelab goes dark. Instead of buying new hardware, I flashed a retired Sophos AP55C access point with OpenWrt and turned it into a backup WAN router that can uplink through my iPhone hotspot. The device is cheap on the used market, and OpenWrt runs well on it. The journey from a freshly flashed device to a working failover uplink had a few bumps worth documenting.

The practical approach is to make the AP55C connect to the iPhone’s Personal Hotspot over Wi-Fi, assign that connection to the WAN firewall zone, and use it as the backup uplink (OpenWrt: connect to a client Wi-Fi).

The Goal

Keep the AP55C serving a local Wi-Fi network for my devices, while also using its Wi-Fi radio as a client of the iPhone hotspot. When the landline fails, OpenWrt routes traffic through the phone instead.

This is a routed client setup, not a wireless repeater: the AP55C creates its own LAN and NATs traffic out through the iPhone hotspot (OpenWrt: routed client).

What You Need

  • A Sophos AP55C flashed with OpenWrt
  • An iPhone with an active mobile-data plan and Personal Hotspot enabled
  • SSH access to the AP55C
  • A working LAN interface on the AP55C
  • A WAN interface configured for DHCP

OpenWrt’s documentation recommends assigning the client interface to the wan firewall zone and using DHCP for the WAN connection.

Important Wi-Fi Limitation

A single Wi-Fi radio cannot always run an access point and a station connection at the same time. In my case, the AP interface (OpenWRT-MGMT) did not appear because the radio was also configured as a station to the iPhone hotspot.

The usual behaviour is:

  • If the STA connection is not yet established, the AP may not start.
  • Once the STA connects to the iPhone hotspot, the AP can become available.
  • For a more reliable dual-purpose setup, use separate radios for AP and STA if the hardware has more than one radio.

This means the iPhone hotspot should be switched on before expecting the AP SSID to appear.

Configuration Used

The wireless configuration used two logical interfaces on radio0:

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'pci0000:00/0000:00:00.0'
        option channel '36'
        option band '5g'
        option htmode 'VHT80'
        option cell_density '0'

config wifi-iface 'wifinet_mgmt'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWRT-MGMT'
        option encryption 'psk2'
        option key '********'

config wifi-iface 'wifinet-wan'
        option device 'radio0'
        option mode 'sta'
        option ssid 'iPhone Marko'
        option network 'wan'
        option encryption 'psk2'
        option key '********'
        option disabled '0'

The first interface creates the local access point. The second makes the AP55C join the iPhone hotspot as a Wi-Fi client and attaches that connection to the wan network.

Fixing a Broken Configuration

At one point, wifi status showed that the radio was up but had no interfaces:

"interfaces": []

That indicated that the wireless configuration had become invalid or empty. The cleanest recovery was to replace /etc/config/wireless with a minimal, known-good configuration:

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'pci0000:00/0000:00:00.0'
        option band '5g'
        option channel '36'
        option htmode 'VHT80'
        option country 'DE'
        option cell_density '0'

config wifi-iface 'mgmt_ap'
        option device 'radio0'
        option mode 'ap'
        option network 'lan'
        option ssid 'OpenWRT-MGMT'
        option encryption 'psk2'
        option key '********'

config wifi-iface 'iphone_wan'
        option device 'radio0'
        option mode 'sta'
        option network 'wan'
        option ssid 'iPhone Marko'
        option encryption 'psk2'
        option key '********'

After saving the file, reload the wireless configuration:

wifi reload
wifi status

A successful configuration shows two interfaces: one AP interface for OpenWRT-MGMT and one station interface for iPhone Marko.

Connecting WAN to the iPhone

The Wi-Fi client interface is bound to the WAN by option network 'wan' in the wifi-iface section above. The wan interface itself only needs DHCP; there is no Ethernet device to assign. The relevant part of /etc/config/network:

config interface 'wan'
        option proto 'dhcp'
        option ipv6 '0'

To apply it:

uci set network.wan.proto='dhcp'
uci commit network
/etc/init.d/network restart

This matches OpenWrt’s routed-client guide: set the Wi-Fi interface to station mode, associate it with the WAN interface, and use DHCP for the WAN connection.

Testing the Setup

With the iPhone hotspot enabled, check that the AP55C has connected:

iw dev phy0 link
iwinfo radio0 assoclist
logread | grep -i wifi

Then test Internet access from the AP55C:

ping -c 3 8.8.8.8

If the ping succeeds, the AP55C is using the iPhone hotspot as its WAN connection. A device connected to OpenWRT-MGMT should then receive an IP address from the AP55C’s LAN and reach the Internet through the phone.

Making It a True Backup

For automatic failover, the landline connection and the iPhone hotspot should be treated as separate WAN interfaces. OpenWrt’s mwan3 package supports failover: traffic normally uses the primary WAN, but switches to the secondary WAN when the primary connection fails.

A basic arrangement is:

InterfaceRoleConnection
wanPrimaryFixed-line Internet
wwan or iphone_wanBackupiPhone hotspot

The iPhone connection does not need to match the landline speed; it only needs to be available when the primary connection fails.

Lessons Learned

  • A missing LuCI “Wireless” menu does not necessarily mean Wi-Fi is absent; it can mean the wireless configuration is incomplete or LuCI’s wireless packages are missing.
  • wifi status is more useful than the LuCI menu when diagnosing whether a radio and its interfaces are actually active.
  • “Network device phy0-ap0 link is down” can simply mean that no client has connected to the AP yet.
  • On a single-radio device, the AP and iPhone-client interfaces can interfere with each other; enable the iPhone hotspot first, then check whether the AP SSID appears.
  • For dependable backup, use two separate radios where possible: one for the local AP and one for the iPhone hotspot client.

With the correct wireless and WAN configuration, the AP55C can become a compact emergency Internet gateway: your normal network stays intact, while the iPhone hotspot takes over whenever the landline connection disappears.