How to Set TTL Correctly for Tether? - Google Pixel 5 Questions & Answers

Rooted my P5, now I just want to run tether through VPN and force TTL to 64 and avoid caps/throttles. To be clear, I have hotspot included in my plan, so I can enable it but it counts towards hotspot allotment. I have done this on Asus Router with Merlin custom script, but I'm not clear how to do this on android where it would persist across reboots. I also have done this on a Franklin T9 hotspot using this guide: https://gist.github.com/weirded/f49ac134aecbd32b71ab22619c7496ab
Can someone explain this to me please?
I know you can force TTL on the tethered devices individually, but how would I do this on the P5 itself to avoid all that extra setup?
Would I want to set ttl=65 so it's 64 for tethered devices? If so, does that mean if I use data on phone's browser it would show as 65?
Thanks in advance!

Related

Tethering

Does the Android Wifi Tether App for root users work for Sprint Moto X? I have unlimited data. I want to tether IPad Air.
winn75 said:
Does the Android Wifi Tether App for root users work for Sprint Moto X? I have unlimited data. I want to tether IPad Air.
Click to expand...
Click to collapse
I was able to make tethering work on my rooted Sprint Moto X, but had to follow the following steps:
1. Change "Device-Profile" to "Generic ICS/JB (wlan0)"
2. Enable "WiFi-driver reload"
3. Enable "Keep Alive - Connection Checking"
4. Enable "Routing Fix"
On your iPad, look for the access point named "wlan0"
I was unable to get wireless encryption working. I also was unable to change the SSID. No matter what SSID I enter, the access point always broadcasts as "wlan0".
Tethering has been extremely unstable for me. Tethering stops if the screen turns off, and it is extremely slow compared to what my data speeds are when not tethering. Running a speed test from my phone without tethering I get 20Mbps down. I get 0.5Mbps running a speed test from my laptop while tethered.
danherbert said:
I was able to make tethering work on my rooted Sprint Moto X, but had to follow the following steps:
1. Change "Device-Profile" to "Generic ICS/JB (wlan0)"
2. Enable "WiFi-driver reload"
3. Enable "Keep Alive - Connection Checking"
4. Enable "Routing Fix"
On your iPad, look for the access point named "wlan0"
I was unable to get wireless encryption working. I also was unable to change the SSID. No matter what SSID I enter, the access point always broadcasts as "wlan0".
Tethering has been extremely unstable for me. Tethering stops if the screen turns off, and it is extremely slow compared to what my data speeds are when not tethering. Running a speed test from my phone without tethering I get 20Mbps down. I get 0.5Mbps running a speed test from my laptop while tethered.
Click to expand...
Click to collapse
Thanks. Does anyone know why the download speed is slow when tethered to an iPad?
danherbert said:
...I was unable to get wireless encryption working. I also was unable to change the SSID. No matter what SSID I enter, the access point always broadcasts as "wlan0".
Click to expand...
Click to collapse
For Verizon, I use the wifi_tether_v3_4-experimental1.apk and set...
change device profile to galaxy nexus (cdma/lte)
check box: wifi-driver reload
check box: enabled routing fix
and I can change the SSID and use WPA encryption. Its been stable. to.

How I got tethering to work (3 different type of methods)

Hey all, I been reading all kinds of methods to tether with the Nexus 5 (also during the Nexus 4 prime), and helped a couple of members here at XDA how I got to tether my T-Mobile's truly unlimited data with 5 GB sharing (it used to be 500, then 2.5GB, now 5GB) connection to my PS3, PC, and other smartphones. Many have PM'd me to explain it further for them how to get it to work, and I figured "I should just make a thread on how I got it to work". In this thread, I will explain to you how I got tethering to work on my phone using T-Mobile's service (it might work for At&T and other carriers). I will tell you the three apps I use and the pros and cons of each app when it comes to tethering a specific device.
Please note:I am not responsible for any consequences you will face with your carrier using my method, nor will I be held responsible if you use my method without having a sharing data plan. This method is for use of a sharing plan that YOU pay for. If you decide to use this method without having a sharing plan, then do what you want, it's your plan, and your money. I have spent a lot of time doing trial and error in order for my tethering to work 100%. I even went over my 5GB of sharing data and I still was able to tether. I think I know why, read the last paragraph of this post. Again, THIS IS FOR MEMBERS WHO PAID FOR TETHERING SERVICE.
Without further ado, you will first need to edit a database located in /data/data/com.android.providers.settings/databases/settings.db. You need to add a new entry that is called "tether_dun_required" with a value of 0. Google and T-Mobile decided to team up and provide a way for T-Mobile to sniff what devices you are tethering to, thus sometimes redirecting you to the T-Mobile page saying you need to add a sharing plan. You can either edit the database with a sqlite app/program, or simply install the install zip (thanks to yakman66). There is an uninstaller if you wish to revert back. I have no idea if you should reflash the zip after you install a new ROM or update it, but I did it anyway. If you need a deeper explanation, refer to the first 4 posts from this thread here:http://forum.xda-developers.com/google-nexus-5/general/fix-nexus-5-tethering-block-t2581035
Installer:https://github.com/marcandrews/hammerhead-hotspot-fix/releases/tag/v1.0
Uninstaller:https://github.com/marcandrews/hammerhead-hotspot-fix/releases/tag/v1.0u
Now we get to the apps. The three apps I use to tether are PDANET+/Foxfi, Clockworkmod Tether, and WiFi Tether Router
PDANET+/Foxfi: Note: There is a free version of PDANET/FOXFI, but you will be kicked off the tethered connection every 20-30 minutes,and I believe there is an a limit of how much MB you share daily. Purchasing the app is only $7.97.
Download from Play Store. Link:PDANET Foxfi:Foxfi Foxfi for At&T and Sprint:Foxfi (Sprint/AT&T Only)
Please make sure you download the correct Foxfi for you carrier. PDANET is for connecting via USB and Foxfi is for bluetooth and wireless. You must install the PC program located here. This app is pretty much self-explanatory. You just set up the network name and password if you decide to use wireless, or plug your phone in PC via USB with PDANET+ for Windows installed.
Pros:
No need to root.
Tethering for your computer: Pretty much instant. Easy setup. Just to be safe install a user switch agent and change it to IE 7.
Tethering for gaming: Using my PS3, I am able to play online with my friends. I am running around 30-40 ms ping, which is not bad for wireless. Smooth.
Tethering for other smartphones and tablets: Easy setup also.
Cons:
You have to pay the app in order to use the app for its full potential.
Computer: For some reason, I get kicked off for a couple seconds from my tethered connection and then connected again. I even enable "Hide Tether Usage" on the options with Google DNS checked on the settings. I think because T-Mobile blacklisted Google DNS (idk?)
Gaming: Your NAT type will never be opened. That means if you join a party that also does not have an open NAT, expect not to be able to join that person. If anyone knows a way to port forward your carriers IP address, please let me know.
Smartphones and tablets: Haven't experienced nothing wrong.
WiFi Tether Router:
Download: WiFi Tether Router
Configure your Network Name SSID, encryption type (whatever works best for you, I use wpa2-psk)m WiFi password, and then enable the tether.
Pros:
Much cheaper than PDA/FOXFI. Only $2.50
There are more setups you can do for this app. You can change the interface, method, drivers, WiFi Mode. There are also tweaks especially for consoles like MTU adjust, enabling DMZ, DMZ Port Forwarding, and DCHP settings. Perhaps you can port forward and have your Nat open with this app, but I'm not expert when it comes to these, perhaps someone out there can find a solution? Let us know!
Computer: Haven't tested it to be honest. If someone is willing to try please let us know how it went.
Gaming: Easy setup. Works just as good as Foxfi
Smartphones and tablets: Works just as good as Foxfi
Cons:
You can only use wireless, there is no USB.
Gaming: Same as Foxfi, Nat is not open.
Smartphones and tablets: None.
Clockworkmod Tether:
Download from Play Store: Clockworkmod Tether (no root)
After that install the drivers of your phone located here
Last but not least, install the tether software on your computer.
Mac: http://download.clockworkmod.com/tether/tether-mac.zip
Linux: http://download.clockworkmod.com/tether/tether-linux.tgz
Windows: http://download.clockworkmod.com/tether/TetherWindowsSetup.msi
Once installed, allow debugging on your phone to PC via usb and start the tether connection.
Pros:
Free, you just need root.
Computers: I don't get kicked out whatsoever tethering on my PC. Not once did I get disconnected for a second and reconnected. Like I said as a precaution switch user agent to IE7.
Cons:
Gaming: Won't accept USB.
Smartphone and tablets: it only uses USB tethering.
So there you go guys, these are the apps I use to tether my devices. You can choose whatever works best for you. When it comes to me playing online or sharing my net to smartphones and tablets, I use Foxfi because it is simple to set up. WiFi Tether Router I just use it as a backup. When it comes to tethering my PC, I use clockworkmod tether because I don't get disconnected from my computer.
I have been using these apps since Nexus 4 and not one time I got temporarily banned from sharing my net. Well actually I did, but it was the first time I ever tried it. Ever since then, I was able to use my tethering to its full potential.I use my data to play online (my home net sucks), and I have not been flagged. Playing online does not consume a lot of data (about 20-30 mb an hour).Here are a couple of ways to keep using your tether without being flagged by your carrier.
1. DO NOT DOWNLOAD BIG FILES ON YOUR GAME CONSOLES. Guys, please use your home internet to update your console version or downloading a patch. As soon as you download a file on your console you will be flagged. I have not tried it with the new 5GB sharing limit but I have tried it on 2.5 and I immediately got flagged, even though I was not close to my sharing limit.
2. Don't download torrents or pronz on your PC using your data. If you want to do that, I suggest going on your phone and downloading it via your phones browser or torrent app. This way your carrier will know you are downloading straight from your phone and not from a tethered device.
Other than that, use your tether how ever you like, but with responsibility. Tethering to other smartphones and tablets seem to not red flag T-Mobile at all. I shared 10gb of data to my coworkers and all they do is stream Pandora and YouTube. I hope this will clear things up and hopefully there will be better alternatives, but I think these methods should let you use your tethering service.
Sort of confused here, I use the built in WiFi tethering in my non rooted nexus 5 on T-Mobile without issue. Why does one need this?
Sent from my Nexus 7 using Tapatalk
Wait, what?
I've never had an issue using native tethering in stock Android on my Nexus 5.
So, are you saying enabling Tethering & Hotspot in the Settings menu doesn't work for you, and apparently many others?
I use built in tethering with the hot spot fix. No redirects to T-Mobile.
Sent from my Nexus 5 using Tapatalk
Never had an issue with tethering here
tethering using the default tether options work great for me with tmobile, without any modifications.
dmz not working with wifi tether router...
am i doing anything wrong?
You got tethering too work despite your network, you mean? The n5 tethers wireless, bluetooth, wired, perfectly. The restrictions of your data plan or network are another thing that is nothing to do with an unlocked n5

Is it possible to preload wifi credentials onto a custom ROM?

So I'd like to get my chromecast working on the TV in our on-call room, but it seems impossible. I've tried spoofing the mac address using my Nexus 5 in order to get onto the network that uses a captive portal for logging in, and it got stuck on "connecting". I've tried using fqrouter, which has failed repeatedly for some reason (maybe problems with Lollipop?). I haven't figured out how to even begin trying to get the CC to connect to the WPA2 enterprise network. I unfortunately don't have a suitable wifi repeater on hand for trying out that approach and finally I'm not sure my cellphone's connectivity and monthly data allowance would be enough for the chromecast (I suspect not).
So what I'm wondering now is, is there any way to activate support for wpa2 enterprise and preload the credentials on a custom ROM?
If not, can you think of any other approach I haven't tried yet? :/
thanks in advance, any and all help appreciated
Alternatively, is it possible to send URL:s to the chromecast's built-in browser and maybe send javascript commands via those URL:s eg for filling in and submitting username and password?

T-Mobile Note 4 [CM12]: Cannot ping when tethering.

Hello, I'm new here on XDA, even though I've been browsing the forums ever since whenever.
Anyway, I have a T-Mobile Note 4 running CM12 and I also must say that I do have unlimited data.
The problem that's been bugging me is this: when I was tethering on stock ROM, I could not ping any host from any of my tethered clients. However, pinging used to work on CM12 (indicating of course that stock ROM has restrictions imposed) until two days ago. I know this because when I tether to my PS3/XBox One, I can access the Internet but cannot login to PSN (Playstation Network). I can only log on to it when ping is working.
I do have an HTTP user agent spoofer for HTTP traffic but this problem seems to be more related with routing on the Note 4 I guess. I have tried many tethering apps (with or without root) in hopes that they would fix this problem but I still cannot ping.
I have seen on the Internet people mentioning native tethering and I was wondering if you guys can recommend any tethering apps that can fix this. Also, I'm not really familiar with the linux iptables and the routing utility and have been trying all these scripts I found on here but they are not working.
So, correct me if what I'm asking for is already done (which would then mean T-Mobile is blocking my outbound traffic on their routers), but what I was thinking was to route the wlan0 traffic straight through rmnet_data0 without any tethering flagging or something like that. Again, I do have internet I just can't access other services like ping which is needed by some programs that I have for MTU path discovery etc.
FoxFi/PdaNet - Not working
Wi-Fi Tether Router - Not working
Other generic tethering apps on PlayStore - Not Working
Thanks in advance.

New Pixel 5 - want to enable Hotspot on Verizon (without their limitations)

I've got a pay-as-you-go account while I try Verizon out in my area. Unfortunately when I turn on hotspot no actual data is passed to the connected devices. I can connect to the phone, but the device I connect with tells me there's no internet. I remember Verizon wanting me to upgrade to yet another level in order to have hotspot allowed.
I've looked around on here and can't find anything related to bypassing this bull****. Can someone point me in the correct direction?
Thank you!
pdanet! you'll need to install it on both the phone and the computer you are connecting to it. it doesn't work on things like roku or streaming devices.
I use it all day every day and have for a year now. blazing fast.
i'm sure there's other solutions, but this is the one that works perfect for me.
bubbyj said:
pdanet! you'll need to install it on both the phone and the computer you are connecting to it. it doesn't work on things like roku or streaming devices.
I use it all day every day and have for a year now. blazing fast.
i'm sure there's other solutions, but this is the one that works perfect for me.
Click to expand...
Click to collapse
I appreciate the advice, but I want to enable hotspot so I can share it with ANY device without the need for doing anything on the other device to connect (other than a password. But thank you though
armyturtle said:
I appreciate the advice, but I want to enable hotspot so I can share it with ANY device without the need for doing anything on the other device to connect (other than a password. But thank you though
Click to expand...
Click to collapse
Used to be if you were rooted you could use a magisk module to do this.
You can use VPN Hotspot. But I think you need to use a real VPN service alongside it.
armyturtle said:
I appreciate the advice, but I want to enable hotspot so I can share it with ANY device without the need for doing anything on the other device to connect (other than a password. But thank you though
Click to expand...
Click to collapse
Probably out of luck then. I know of no solution.
The only other option you have is to do the pdaNet+ on your computer, and then use your computer as an adhoc hotspot. You'll probably only be able to blast out about 50% of the speed that you draw on your phone going through two hops. But its likely the only solution you can use. And it'll only work on a PC, not a Mac.
Sorry bud.
Maybe I'm missing something here but if you're on a pre-paid plan to try out service, what does the hotspot functionality tell you? Hotspot will give you the same speeds as your existing device so long as you're not subject to any hotspot caps per the terms of service. I have 15 GB of full speed hotspot data on my plan and when I connect a device it is no different than the phone connection. Once I hit the limit then it is of course stupid slow ~600 kbps I believe. I only really use it when traveling to keep the toddlers entertained.
l7777 said:
Maybe I'm missing something here but if you're on a pre-paid plan to try out service, what does the hotspot functionality tell you? Hotspot will give you the same speeds as your existing device so long as you're not subject to any hotspot caps per the terms of service. I have 15 GB of full speed hotspot data on my plan and when I connect a device it is no different than the phone connection. Once I hit the limit then it is of course stupid slow ~600 kbps I believe. I only really use it when traveling to keep the toddlers entertained.
Click to expand...
Click to collapse
You are missing it. I want to utilize my pay-as-you-go (not prepaid) plan, which has "unlimited" data, to give data to the other devices around me... my tablet, kids devices, etc. Been able to do this without limitation with my Google Fi pixel and account since they've offered Google Fi as a service. Simply click the hotspot icon to enable and everyone can connect to my phone like it's regular router, period. I don't want to give yet more money to Verizon to be able to do this. If I'm already paying for unlimited data once, it's none of their business how I utilize it; and screw their TOS.
Adb commands may work for you. I'll need them for sprint.
Adb set global tether_dun_req 0
Also try a custom OS or locked bootloader? I don't remember the exact command but if you google that you'll find it
armyturtle said:
You are missing it. I want to utilize my pay-as-you-go (not prepaid) plan, which has "unlimited" data, to give data to the other devices around me... my tablet, kids devices, etc. Been able to do this without limitation with my Google Fi pixel and account since they've offered Google Fi as a service. Simply click the hotspot icon to enable and everyone can connect to my phone like it's regular router, period. I don't want to give yet more money to Verizon to be able to do this. If I'm already paying for unlimited data once, it's none of their business how I utilize it; and screw their TOS.
Click to expand...
Click to collapse
I certainly agree with your sentiment that unlimited should be unlimited but as we all know by now that ship has sailed. You were aware of the limitations when you signed up for service. Lots of things are possible but restricted by an authority of some sort. That said, you may be able to do what you want but there will be hoops to jump through. It is foolish to expect a one click solution when you are explicitly attempting to bypass the known restrictions.
PDA Net is one such option.
Funneling the tethered traffic through a VPN is another as suggested above.
I'll make the assumption that you wish to do this while at your home and mobility is less of a concern. The below should effectively be able to turn a phone into a home internet connection.
You will need a USB-C dock with ethernet port, the VPN Hotspot app, and a router that will run OpenWRT
Configure OpenWRT to mangle all outgoing packets with a TTL of 65
Connect the WAN port of the router to the ethernet port of your dock
Use the VPN Hotspot app to tether with the ethernet connection
See if your devices can access the internet
This is based off what I know about how Verizon and many other mobile carriers detect tethered devices. The key is the TTL of outgoing ethernet packets. TTL is decremented at each router hop. From the phone packets always have a TTL of 64. When another device connects via the hotspot the packets will be seen by Verizon as having a TTL of 63. Thus they will deduce that it is a tethered device and limit the traffic. The usual disclaimers apply. I take no responsibility for the consequences of following or attempting to follow my instructions.
Can you believe its legal for a company separate from the manufacturers and even distributors of these device to place restrictions on hardware you own for the sake of profit? Its abusive and embarrassing. (Unless you leasing, then you making me sound stupid as hell)
Code:
adb shell
settings get global tether_dun_required
If you get null or 1 response:
adb shell
settings put global tether_dun_required 0.
try this my friend
l7777 said:
I certainly agree with your sentiment that unlimited should be unlimited but as we all know by now that ship has sailed. You were aware of the limitations when you signed up for service. Lots of things are possible but restricted by an authority of some sort. That said, you may be able to do what you want but there will be hoops to jump through. It is foolish to expect a one click solution when you are explicitly attempting to bypass the known restrictions.
PDA Net is one such option.
Funneling the tethered traffic through a VPN is another as suggested above.
I'll make the assumption that you wish to do this while at your home and mobility is less of a concern. The below should effectively be able to turn a phone into a home internet connection.
You will need a USB-C dock with ethernet port, the VPN Hotspot app, and a router that will run OpenWRT
Configure OpenWRT to mangle all outgoing packets with a TTL of 65
Connect the WAN port of the router to the ethernet port of your dock
Use the VPN Hotspot app to tether with the ethernet connection
See if your devices can access the internet
This is based off what I know about how Verizon and many other mobile carriers detect tethered devices. The key is the TTL of outgoing ethernet packets. TTL is decremented at each router hop. From the phone packets always have a TTL of 64. When another device connects via the hotspot the packets will be seen by Verizon as having a TTL of 63. Thus they will deduce that it is a tethered device and limit the traffic. The usual disclaimers apply. I take no responsibility for the consequences of following or attempting to follow my instructions.
Click to expand...
Click to collapse
Yeah, again, I do appreciate your efforts to help. And no, I am not concerned about stationary setup... I do want to be able to be mobile. Also to clarify I never said I was expecting a "one-click" solution; that is another assumption you made. I'm familiar with linux and also have used the xposed modules in the past to bypass restrictions before on other mobile devices - such as apps detecting GPS spoofing. I used to use an exposed module and had some commands to enter to hide the GPS spoofing from the OS. Worked a treat actually.
I'm going to try Andrew2432's suggestion. Thank you again though - I do appreciate it.
armyturtle said:
Yeah, again, I do appreciate your efforts to help. And no, I am not concerned about stationary setup... I do want to be able to be mobile. Also to clarify I never said I was expecting a "one-click" solution; that is another assumption you made. I'm familiar with linux and also have used the xposed modules in the past to bypass restrictions before on other mobile devices - such as apps detecting GPS spoofing. I used to use an exposed module and had some commands to enter to hide the GPS spoofing from the OS. Worked a treat actually.
I'm going to try Andrew2432's suggestion. Thank you again though - I do appreciate it.
Click to expand...
Click to collapse
You'll have to let us know if it works. I'm skeptical knowing how they identify tether traffic on my account. You can alter the TTL on the devices that connect to the hotspot but that has to be done on all the devices.
donlu30 said:
Used to be if you were rooted you could use a magisk module to do this.
Click to expand...
Click to collapse
That's what I do on Sprint/T-Mobile, root + Magisk hotspot/tethering module.
Well mines caught and I've tried everything. Editing build props with magisk, dun required set to 0, even the tethering module. When I tried to install lineage my esim wouldn't download. Pretty upset about adhoc pdanet right now. Especially since it cuts out constantly and it cuts out my 5g. Real mad.
andrew2432 said:
Well mines caught and I've tried everything. Editing build props with magisk, dun required set to 0, even the tethering module. When I tried to install lineage my esim wouldn't download. Pretty upset about adhoc pdanet right now. Especially since it cuts out constantly and it cuts out my 5g. Real mad.
Click to expand...
Click to collapse
As I noted, I don't expect they are relying on your phone settings to detect/block tethering. There are ways of detecting the traffic on their end. Those things are what you'll need to mitigate.
I think with tmobile/sprint the culprit is an extra apn setting that is the hotspot connection. Get rid of that sucker, might have something. Gonna make me mad real quick
Anyway... none of that worked and in the end I gave up and just changed to the "Do More" plan. It's $70 but at least it let's me tether. Verizon wins... Thx guys.
armyturtle said:
Anyway... none of that worked and in the end I gave up and just changed to the "Do More" plan. It's $70 but at least it let's me tether. Verizon wins... Thx guys.
Click to expand...
Click to collapse
I got mine working. I don't pay for actual internet because of unlimited data. What was the issue with yours? It wouldn't turn on or it wouldn't transmit data once turned on? We can fix won't turn on in seconds with magisk and then hidepropsconfigs module. Install it and use a terminal emulator to add the line "net.tethering.no provisioning=true" to your build prop and it will unlock it.
If its APN related we can fix that too. Just need to mount your system folder and delete all apns, then input your own specified APN with dun added to the type.
No f***** way are they gonna make me pay to use my device as designed

Categories

Resources