Issue solved... I can now at least ping IPs and DNS names, testing is still ongoing, if I run into any issues I shall return. Device shows itself as a USB Ethernet device (hence the `UE0` designation), rather than a Cellular Modem.
now if you unplug/disable WAN connection it should automagically failover to your 4G Connection. Once WAN is re-instated, it will prefer that connection over the 4G due to the Tiers and Priority settings defined earlier.
- Plug in dongle to any desktop and access WebUI. Details of how to do this should be with the dongle. Windows is super easy as it has `autorun` when dongle is inserted to USB. Linux is a case of decompressing a couple of archives, running an `install.sh` and changing your network connection in the taskbar.
- Once WebUI is accessed head to the 'Settings' tab on the top navbar. Here you can define 2G/3G/4G connection preferences if you so desire, but head to 'Device Settings' > 'DMZ' on the left hand navbar. 'Enable' DMZ and set desired IP (i used the default 192.168.6.169) hit Apply
- Navigate to top navbar 'Information' and Left hand navbar 'Device Information' note down the 'IP Address' field. Then plug it into a USB2 slot on your OPNsense instance (max speed is 150mbit, so USB2 is fine)
- Now Access OPNsense WebUI, go to 'Interfaces' > 'Assignments'. In the Assign new interface wait for `UE0` to appear. set a description such as 'WAN_Failover'... hit Add & Save
- Head to the [WAN-Failover] Interface now listed and set 'Enable' interface, 'Lock' to prevent removal. Set 'Static IPv4' and 'None' for IPv6. Fill IPv4 Configuration with the DMZ Address you set earlier (in step 2), set the 'Gateway Rules' field to your WAN_Failover Profile
- Go to 'System' > 'Gateways' > 'Configuration' Add a Gateway and fill in the details as you so wish. IP address needs to be set to the IP Address you found from 'Device Information' (in step 3)... deselect all tick boxes apart from 'Failback States', set a monitor IP (advise to go for a "quad" address such as 8.8.8.8 but note cant be the same one used for your main WAN)... finally set Priority. advise a larger number than your Main WAN. Hit Save & Apply
- At this point, for me, OPN auto-created an 'Interface WAN_FAILOVER Gateway' which isnt delete-able. Cool, whatever, doesnt seem to mess anything up. this entity will stay '(active)', which also seems normal regardless if failover is being used or not
- Edit your WAN GW, Enable 'Failover states' (This along with the 'Failback states' set earlier allows the connections to switch over cleanly)
- After some time you should now have populated RTT/RTTd/Loss fields and a green Status Icon. if so, its connected and the 4G Failover is ready for use theres just two more things to do
- Navigate to 'System' > 'Gateways' > 'Group' Create a neew Entry and set Tier 1 as your WAN and Tier 2 as your WAN Failover. Set 'Trigger Level' to 'Member Down' Leave Pool Options and set Your Description
- Finally, set FW rule(s) for 'Allow All' from LAN(s)
now if you unplug/disable WAN connection it should automagically failover to your 4G Connection. Once WAN is re-instated, it will prefer that connection over the 4G due to the Tiers and Priority settings defined earlier.