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

[BUG] - debounce delay not working and IP leak on auto tunneling #532

Open
luciahk1 opened this issue Jan 3, 2025 · 6 comments
Open

[BUG] - debounce delay not working and IP leak on auto tunneling #532

luciahk1 opened this issue Jan 3, 2025 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@luciahk1
Copy link

luciahk1 commented Jan 3, 2025

I set the debounce delay to 0.
I close the app and reopen and I see it back to 3

I saw few complains that there is an IP leak on auto tunneling, specially when switching from WIFI to mobile network.
Your previous suggestion to use killswitch (block internet on no VPN) is not a solution since it means to simply not to use the auto tunneling feature.

I am using currently Macrodroid and Wireguard app to put tunnel up and down on trusted Wifi (until you solve the IP leak and I can use your app again)
For sure your app would be the 1st choice if this IP leak is solved.

Please note, the IP leak on auto tunneling during the switch to trusted wifi is very clear.
I am looking forward for next update.

@luciahk1 luciahk1 added the bug Something isn't working label Jan 3, 2025
@wexsnw
Copy link

wexsnw commented Jan 3, 2025

Does IP address leak occur when switching the Internet between mobile data and Wi-Fi?

@luciahk1
Copy link
Author

luciahk1 commented Jan 3, 2025

Exactly,
And to be very accurate from WIFI to mobile data.
WIFI get disconnected (manually or when leaving home), mobile data starts immediately and then in few seconds the tunnel vpn starts with auto tunneling.
During these few seconds the mobile data is leaking the real IP.
It is even noticeable by eyes, you can see mobile data active (down and up)
I am using as well macrodroid project and I get notification regarding the new IP when wifi on/off and VPN on/off... It is very clear that IP leaks.

@zaneschepke
Copy link
Owner

Does IP address leak occur when switching the Internet between mobile data and Wi-Fi?

Hello!

There is always a leak or potential for a leak if you do not have a kill switch enabled. If you are worried about leaking, you need to be using a kill switch. It does not matter how fast the switch happens. If you are not either using either the native kill switch (best option for preventing leaks) or the VPN kill switch provided by WG Tunnel (less secure option, but good if you want LAN bypass), then you are leaking.

If you're using Macrodroid with the original wireguard app without a kill switch, your IP is still leaking it is just less noticeable.

Can you help me understand your use case for auto tunnel? Typically, if IP leaking is something that concerns you, you should just be using kill switch with AOVPN.

There is no problem enabling native kill switch and using it with auto tunnel. This works, it just depends on what your use case is and what you're trying to accomplish.

@luciahk1
Copy link
Author

luciahk1 commented Jan 4, 2025

Thank you for the response,
My case is simple, I have wireguard set on my Mikrotik router, so when I am home and on Wifi, all devices are covered.
I set my home wifi as trusted on WG tunnel and to connect to the tunnel if I loose the wifi connectivity. During this switch from wifi to mobile there is 3 - 5 seconds leak for mobile data IP.
When I have my home wifi as trusted and I enable native kill switch, then when I am on my wifi, vpn is not connected and internet is blocked on my phone.
Trusted network and kill switch dont work together so far.

IP leak is a concern for everyone who is using vpn, otherwise if someone is fine with IP leak, then why use vpn?
If I use AOVPN, then I wont be able to have trusted wifi.

Once more, my case is simple, at home wifi, I want to disable phone vpn and when away from wifi, I want vpn to connect, without IP leak.
Another point, I dont want to be all time on vpn while I am home and use AOVPN, just to preserve the phone battery.
As an expert I will appreciate your advise on how to achieve it.
Thank you,

@zaneschepke
Copy link
Owner

Thanks for the additional details!

So, there is no way to automate this that is 100% protected because of Android limitaitons with native kill switch not allowing to be toggled in an automated way. It all depends on how important not leaking is to you. If it is very important, you will need to manually toggle native kill switch or use native kill switch and have auto tunnel connect you to a different tunnel if you wish while you are at home.

The best way to automate that will prevent leaking (but not 100%) would be to use the VPN kill switch in WG Tunnel. I will need to add a feature (a feature which should have already been there so I'm sorry for not adding that yet) where the VPN kill switch will be automatically turned off while connected to a trusted network by auto tunnel. This way, even if auto tunnel has a delay, VPN kill switch will be active during this delay and help prevent leaking. I'll work on adding this feature.

@luciahk1
Copy link
Author

luciahk1 commented Jan 5, 2025

This is a fantastic and realistic response,
Thank you,
As you mentioned in the last comment, adding the new feature would be helpful.
I will monitor the app and I look forward to support the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants