4 ms·
OpenWrt: Smartphone USB Tethering
- karmakaze 3y agoA simpler setup (if it's supported, I have a USB-C one but haven't tried) would be to use an USB-to-go Ethernet adapter and share the phone's internet connection via a router's WAN port. Then any regular hardware router or OpenWrt could be used in a normal way.
- Tostino 3y agoI'm doing that right now. It works, but tethering limits are definitely enforced.
- hattmall 3y agoHave you tried modifying the TTL on the router? I can't give you all the information but it's a place to look. I believe dropping it by one is what's needed. I've used a Belkin router flashed with padavan firmware and it has an option to adjust TTL, just a checkbox, but it seems to enable unthrottled unlimited tethering as far as I can tell.
- notpushkin 3y agoI believe you should add one, not subtract. E. g. if TTL on the phone is set to 64, you'll want router to send packets with TTL 65, so that one extra hop (from router to phone) brings it down to 64 and the carrier can't tell the difference.
- hattmall 3y agoAh, makes sense!
- theshrike79 3y agoIs there a way to determine if a phone supports this without just going ahead and trying it? I'd rather not spend the money if it won't work =)
- karmakaze 3y agoIn my case, I already had a USB-C hub/ports/adapter with Ethernet for my laptop as well as many routers around the house. You can also check phone specs for USB OTG (On-the-go, operating in host rather than device mode).
- ThatPlayer 3y agoIt recommends RDNIS still. Last I heard that was being disabled on Linux soon.
- sccxy 3y agoBeryl AX travel router is my this years best purchase. USB tethering works really well with my iPhone. https://www.gl-inet.com/products/gl-mt3000/ https://www.gl-inet.com/products/gl-mt3000/
- HumblyTossed 3y agoI have the previous gen, and it's still really good for use in hotels. But... I have been thinking of upgrading. :)
- ronnier 3y agoI have one of these too. One of the best purchases I've made.
- Nursie 3y agoI have the mango router, it's a little older but very capable and it's got me out of a tight spot a number of times. Like when we've moved house but don't have an internet connection installed yet, just plug in a phone or 4G dongle and away you go. Before that I had a little TP-Link portable router (MR3020?) that I'd flashed with ROOter - https://www.ofmodemsandmen.com/ 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.
- hypercube33 3y agoAnother super interesting open source project without a screenshot to be found
- KennyBlanken 3y agoHeads up to anyone looking at Gl-inet's stuff: their Mediatek routers are good due to solid mainline kernel support. The Qualcomm stuff isn't nearly as good.
- nikolay 3y agoYup! It's great! I've bought it this summer going to Europe and it's lovely!
- userbinator 3y agoThe first time I used USB tethering on a generic Android many years ago I was very pleasantly surprised how simple and straightforward it was. IMHO making it effectively become a generic USB Ethernet adapter (RNDIS) was a great idea as drivers for that are widely available. ...but of course the "security" BS has been used as an excuse to try to put an end to that recently.
- trustingtrust 3y agoA lot of 4G modems connected via pcie still are USB interfaces internally. So the usb 2.0 limits on these are still there (though that is not much of a problem in general as 4G speeds are low). With 5G if you connect to a usb3 port for tethering I wonder if the speeds are above the usb2 limits or if this driver is still limited to usb2. Because with 5G modems, most of the devices that use it as a backup likely use pcie speeds. Would be a waste to use usb2 speeds
- anonymousiam 3y agoI've done this many times. So many that I set up the hypervisor (fanless CompuLab PC) to bridge the WAN Ethernet, and all of the possible USB modems (multiple smart phones, and hotspots) on one interface which the OpenWRT VM uses as WAN. With it set up like this, I can simply plug in the correct device and then reboot. No configuration changes required. Over the years I did need to do some minor tweaks to get IPv6 working properly in all configurations, but it's been solid. 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.
- kevmo314 3y ago> has better performance (lower latency) than turning your smartphone into an access point and using that 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?
- kalleboo 3y agoOn my iPhone I get about 70 Mbps tethering using Wi-Fi, 250 Mbps tethering using USB-C, vs about 400 Mbps running the speedtest on the phone itself.
- TwoNineFive 3y agoI do something like this, but I use a different method. 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.