Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Utility to Mask Hotspot data as "on-device" data #4

Merged
merged 3 commits into from Apr 4, 2022

Conversation

parker-stephens
Copy link
Contributor

I've added an option to add some iptables/ip6tables rules that would mask what would normally be counted as hotspot data in the T-mobile dashboard as "on-device" data, that would allow a user on an unlimited plan to have unlimited high-speed data on the hotspot and its connected devices, instead of 5GB/40GB or whatever a plan offers at high-speed which would then be throttled to 3G.

This would not bypass any sort of network-management or video throttling that may be apart of a customer's plan's terms. Also if a customer is on a straight-up limited data plan, this would not work either.

There's a good read-up here explaining what TTL rules do.

Great work on the project btw!

@parker-stephens
Copy link
Contributor Author

I will also add, that to verify that this is working, any traceroute to an IPv4/6 address should end 1 hop after the hotspot. I've attached a picture below of what it looks like when the rule is working properly.
image

Copy link
Owner

@c-herz c-herz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for taking so long to review this, I just happened to see it! I like the option you added, but there are just a few small things to change. All of them just affect integrating the function into the rest of the script; none of them affect the feature you added itself. Also, there's a typo or two I noticed. Great work though, and I appreciate you adding to the project!

utils.py Outdated Show resolved Hide resolved
utils.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@c-herz c-herz merged commit 98e8b7c into c-herz:main Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants