Can't Get USB Tethering Working
Posted: Tue Jan 05, 2021 8:00 pm
Happy New Year everyone! I'm attempting to set up USB tethering with a Samsung Galaxy S7 and a Linksys WRT 3200 ACM router, but I can't seem to make it work.
I'm following BillA's instructions quoted here:
*** Tethering a phone to a router via USB ***
First, turn off WiFi on the phone and make sure that it has a working mobile internet connection by running a sped test in the phone's browser (http://www.bing.com/widget/t/speedtest).
Connect the phone to the router's USB port via a regular USB charging/data cable.
On the phone go to Settings > Cellular/Connections/Network > Personal Hotspot/Mobile Tethering, and turn on USB Tethering. The location of the tethering menu may be slightly different on each phone model, so dig around the menus to find it. If it's prompting whether to use both USB and WiFi/Bluetooth, choose USB only, and make sure to turn off WiFi on the phone.
On the router disable the internal modem, or better yet physically remove it.
Go to Modem > Network Status > Prev/Next Modem > to select the tethered phone.
Go to Modem > Connection Profile > fill in the proper APN for your carrier, then click SAVE&APPLY.
Go to Network > Firewall > Custom TTL Settings > make sure that the settings checkbox is DISABLED, then click SAVE&APPLY.
Go to Network > Firewall > Custom Rules > copy and paste the two lines below to the bottom of the rules window, then click RESTART FIREWALL.
Adjust the tethered "usb<x>" device (usually "usb0") and TTL values (64/65/117) for your specific carrier.
iptables -t mangle -I POSTROUTING -o usb0 -j TTL --ttl-set 65
iptables -t mangle -I PREROUTING -i usb0 -j TTL --ttl-set 65
Go to Network Interfaces > LAN > General Setup > Use Custom DNS Servers > set the DNS to 8.8.8.8/9.9.9.9, then click SAVE&APPLY.
Finally, restart the router, enable USB Tethering again on the phone and test your internet connection.
You may have to reselect the tethered phone under Modem > Network Status > Prev/Next Modem (usually "usb0").
Keep in mind, you have to manually turn on USB Tethering on the phone every time you re-power or connect it to the router, but nothing else needs to be done on the router after the initial setup. In order to turn on USB Tethering automatically whenever the phone is turned on, you can use an app like Automate (no root) or Tasker (for root) from the PlayStore:
https://play.google.com/store/apps/deta ... b.automate
If everything has been done correctly, you should be able to use your phone's unlimited mobile data through the router along with all of its advanced features.
I have Goldenorb installed and can access the WiFiX interface just fine. What can I post here that could allow someone knowledgeable to diagnose where I'm going wrong?
Some other particulars include it is on the Verizon network with a legit, paid-for plan with hotspot access. I believe Verizon's TTL value is 65, so that's what I used. I also tried 117 just to check.
The router is seeing the phone, but it is not connecting to the phone's modem.
One section I found confusing was disabling the router's radio, so that could be a problem.
Really, I'm just lost at this point.
I'm following BillA's instructions quoted here:
*** Tethering a phone to a router via USB ***
First, turn off WiFi on the phone and make sure that it has a working mobile internet connection by running a sped test in the phone's browser (http://www.bing.com/widget/t/speedtest).
Connect the phone to the router's USB port via a regular USB charging/data cable.
On the phone go to Settings > Cellular/Connections/Network > Personal Hotspot/Mobile Tethering, and turn on USB Tethering. The location of the tethering menu may be slightly different on each phone model, so dig around the menus to find it. If it's prompting whether to use both USB and WiFi/Bluetooth, choose USB only, and make sure to turn off WiFi on the phone.
On the router disable the internal modem, or better yet physically remove it.
Go to Modem > Network Status > Prev/Next Modem > to select the tethered phone.
Go to Modem > Connection Profile > fill in the proper APN for your carrier, then click SAVE&APPLY.
Go to Network > Firewall > Custom TTL Settings > make sure that the settings checkbox is DISABLED, then click SAVE&APPLY.
Go to Network > Firewall > Custom Rules > copy and paste the two lines below to the bottom of the rules window, then click RESTART FIREWALL.
Adjust the tethered "usb<x>" device (usually "usb0") and TTL values (64/65/117) for your specific carrier.
iptables -t mangle -I POSTROUTING -o usb0 -j TTL --ttl-set 65
iptables -t mangle -I PREROUTING -i usb0 -j TTL --ttl-set 65
Go to Network Interfaces > LAN > General Setup > Use Custom DNS Servers > set the DNS to 8.8.8.8/9.9.9.9, then click SAVE&APPLY.
Finally, restart the router, enable USB Tethering again on the phone and test your internet connection.
You may have to reselect the tethered phone under Modem > Network Status > Prev/Next Modem (usually "usb0").
Keep in mind, you have to manually turn on USB Tethering on the phone every time you re-power or connect it to the router, but nothing else needs to be done on the router after the initial setup. In order to turn on USB Tethering automatically whenever the phone is turned on, you can use an app like Automate (no root) or Tasker (for root) from the PlayStore:
https://play.google.com/store/apps/deta ... b.automate
If everything has been done correctly, you should be able to use your phone's unlimited mobile data through the router along with all of its advanced features.
I have Goldenorb installed and can access the WiFiX interface just fine. What can I post here that could allow someone knowledgeable to diagnose where I'm going wrong?
Some other particulars include it is on the Verizon network with a legit, paid-for plan with hotspot access. I believe Verizon's TTL value is 65, so that's what I used. I also tried 117 just to check.
The router is seeing the phone, but it is not connecting to the phone's modem.
One section I found confusing was disabling the router's radio, so that could be a problem.
Really, I'm just lost at this point.