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

Route all tethering to vpn by default #53

Closed
imShara opened this issue Dec 23, 2018 · 13 comments
Closed

Route all tethering to vpn by default #53

imShara opened this issue Dec 23, 2018 · 13 comments

Comments

@imShara
Copy link

imShara commented Dec 23, 2018

Need possibility to apply routing rules when any tethering enables. Or QuickSettingsTile which enables wifi tethering and apply rules.

@Mygod
Copy link
Owner

Mygod commented Dec 23, 2018

Monitoring tethering changes require the app to be constantly running, which is undesirable. I would suggest use the "Repeater" tile of this app as a shortcut to this app's tethering management activity.

@imShara
Copy link
Author

imShara commented Dec 23, 2018

Anyway, it's unclear and requires too many taps. If you already have root privelegues, you can make alternative "WIFI Tethering" QSTile, which enables/disables tethering and vpnhotspot at same time.

And if you want to connect from client to android (via 192.168.43.1) and to internet, repeater is not good choice

UPDATE
There is no need root to enable WIFI Hotspot. Until Oreo. Since Oreo. Quick Settings App uses that.

@Mygod
Copy link
Owner

Mygod commented Dec 23, 2018

That's certainly possible to do. I'm already doing them in this app. I guess I can add 3 more shortcuts.

@imShara
Copy link
Author

imShara commented Dec 23, 2018

Tried to investigate by myself. There is problem with legacy wifi tethering switch:

  1. If tethering disabled in system - switch will enable it (and it's working), but not detects wlan interface even if app restarted. Switch still greyout.

  2. If tethering enabled in system, app detects wlan interface, legacy switch is active. It can disable tethering and detects that tethering disabled. No more wlan in list, switch becomes grey. If you try to toggle switch now - look at point №1

Android 7.1.2

@Mygod Mygod closed this as completed in 426b932 Dec 25, 2018
@Mygod
Copy link
Owner

Mygod commented Dec 28, 2018

2.1.0 is released. Check out the new quick settings tiles and see if that works for you.

@tenwx
Copy link

tenwx commented Dec 28, 2018

能不能支持下桌面小工具?多谢了

@Mygod
Copy link
Owner

Mygod commented Dec 28, 2018

@tenwx Contributions are welcome.

@imShara
Copy link
Author

imShara commented Dec 28, 2018

Thanks! Will donate today or tomorrow.

Check out the new quick settings tiles and see if that works for you.

Tiles exists but switching problems still here. I mean I shoud make tests, logs and create new issue

@Mygod
Copy link
Owner

Mygod commented Dec 28, 2018

Oh sorry I missed that comment about legacy switches. Does non-legacy version work for you? If so, just use that one instead.

@Mygod
Copy link
Owner

Mygod commented Dec 30, 2018

@imShara I just checked and indeed that switch would cause the issue you described for Android 7.x. The bug is related to Android system and there's nothing I can do about it. I'd suggest simply avoid using it.

@Mygod
Copy link
Owner

Mygod commented Feb 5, 2019

I will add another feature that enables you to monitor tethered interfaces and route its tethering to VPN automagically in 2.3.

Mygod added a commit that referenced this issue Feb 5, 2019
This would be useful to be used in together with Instant Tethering + Turn off hotspot automatically.

Refine #26, #53.
@sollermun
Copy link

I will add another feature that enables you to monitor tethered interfaces and route its tethering to VPN automagically in 2.3.

Mygod, can you provide a quick tutorial on how to use this feature in the app? It sounds like the solution to a problem I have. I want the route usb tether to VPN at all times and to reroute if the connection is temporarily broken for whatever reason, e.g. the cable is unplugged and plugged back in or VPN disconnects and reconnects. Thanks for your hard work! Love your program and us it every day.

@Mygod
Copy link
Owner

Mygod commented Sep 15, 2021

@sollermun You can use the monitor feature. After USB tethering is on, click on the eye icon on the top right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants