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

[FEATURE] - Block connections outside VPN #104

Closed
kslcsdalsadg opened this issue Feb 1, 2024 · 2 comments
Closed

[FEATURE] - Block connections outside VPN #104

kslcsdalsadg opened this issue Feb 1, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request wg-lib This issue requires changes to the official WireGuard Android library.

Comments

@kslcsdalsadg
Copy link

Is there a way to enable automation then disallow connections outside the VPN but then allow it when automation disconnects the VPN?
It I set manually the toggle on Android settings -> Internet -> VPN the internet isn't working when automation disables VPN due to the app settings.

@kslcsdalsadg kslcsdalsadg added the enhancement New feature or request label Feb 1, 2024
@zaneschepke
Copy link
Owner

Hello! Unfortunately, Android does not provide an API for controlling that setting. The only way around this is to not use the OS level kill-switch and create a kill-switch within the app that can be managed by the app to have the behavior you described. This was discussed previously in #52 and it is definitely something that is on the roadmap to be implemented.

@zaneschepke zaneschepke added the wg-lib This issue requires changes to the official WireGuard Android library. label Feb 10, 2024
zaneschepke added a commit that referenced this issue Feb 19, 2024
Migrated app to a forked version of wireguard-android to enable development work on features that require changes to the core lib, like #107 #104 #87 #52 #6

Improved first launch flow by change vpn permission to only launch on first tunnel start

Changed to proper database seeding strategy

Updated README to account for GitHub packages auth requirement

Migrated from deprecated UI components and libs

Bump versions
@zaneschepke
Copy link
Owner

If I understand this feature correctly, this should be resolved with the latest VPN kill switch feature added for #52. If I'm mistaken, let me know and we can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wg-lib This issue requires changes to the official WireGuard Android library.
Projects
None yet
Development

No branches or pull requests

2 participants