OpenWrt: Smartphone USB Tethering
openwrt.org
openwrt.org
...but of course the "security" BS has been used as an excuse to try to put an end to that recently.
Note that doing it this way doesn't require most of the steps in the parent article document. The hypervisor recognizes the network hardware, assigns it to the bridge, and KVM/virt-manager assigns the bridge to the OpenWrt VM as a virtio network device. OpenWRT sees a plain vanilla virtio Ethernet device so it doesn't need any special drivers or configuration.
USB tethering works really well with my iPhone.
Before that I had a little TP-Link portable router (MR3020?) that I'd flashed with ROOter - https://www.ofmodemsandmen.com/
I wanted to mention it because it's been a great plug-and-play openwrt derivative option with support for a lot of devices.
Do you plug your phone in via USB-C and then use the WIFI off of that instead of the hotspot on your device?
Or do you go to hotels and use this to connect to their wifi and then use your own AP?
So when I travel I can either tether a phone and all the family devices just connect, or bridge it to the destination network and again let all the devices connect as if at home!
Sounds great!
P.s. I love (and am horrified) at how easy it is to ‘hijack’ a devices wifi just by making a network with the same name (and no password). I’ve done it myself over the years to make it easier for family or friends while travelling. But I always felt a bit ick about it working.
I tether via a cable.
Because it's my work (Dev/Tech/Nerd) I have multiple phones with SIM cards.
So I physically tether a phone to the device.
I don't believe the device OP linked can a bridged WiFi network as such.
You can do a similar thing with a Mac:
Plug in your iPhone via a cable, then share the iPhone's tethered data connection over the Macs WiFi or ethernet port.
It's actually a good way to get around restrictions on some mobile SIM plans that don't allow them to be used as Data SIMs!
So it really depends where I am, so I can choose between USB, ethernet or wifi.
But I think most use for me have been USB tethering in my home country (unlimited mobile data).
I just like how router does adblocking (Adguard Home DNS) and VPN with wireguard/tailscale.
When we travel the Beryl AX is our own hotspot, all devices can connect to its network. Then I just pick the best way to get the Beryl to the internet. Sometimes it's wired, sometimes it's connected to a WiFi, sometimes I need to plug in the phone and we use that.
And the best thing is that it can do failover, so I can have the hotel WiFi as the primary connection, but it'll fall back to the 4G phone connection if something goes wrong.
I simply use mwan3 with a separate USB-WiFi adapter exclusively for this use. That way, my main WiFi radios are not negatively affected when I activate the hotspot.
I already have my phone configured as a hotspot for when I travel, and I was already using mwan3 on my router already, so setting it up this way was easy and just made sense.
mwan3 is configured to use the regular wired connection whenever possible, but if it goes down, then it switches over to the hotspot radio. Both conditions must be met: Hotspot is on, and main internet is down. If my internet is down, all I have to do is press a button of two on my phone to turn on the hotspot and everything else happens automatically.
Another advantage of having a separate and different WAN interface is that I have ACLs on this interface which prohibit certain high-intensity types of traffic that I don't want transiting the hotspot.
I just have to remember to put a fan on the phone when I do this. It gets hot.
Generally I've had good performance running an access point on my phone, this is the first time I've heard otherwise. I'd be interested in benchmarks if anyone knows of some?