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

[Request] Network lock #153

Open
zero77 opened this issue Mar 30, 2017 · 3 comments
Open

[Request] Network lock #153

zero77 opened this issue Mar 30, 2017 · 3 comments

Comments

@zero77
Copy link

zero77 commented Mar 30, 2017

Can u add a network lock option where if enabled and open vpn is running, it blocks all network and internet access, when its not connected to a vpn.
Thanks

@selvanair
Copy link
Collaborator

Doing this in a reliable and generic way is hard. Further it would need admin rights while the GUI is supposed to be run with limited privileges.

In my view this is the job of the firewall. You can easily block all traffic through the LAN adapter except to the VPN servers/ports using a couple of lines of firewall rules. Then network access will become available only when the VPN tunnel is up.

@ValdikSS
Copy link
Contributor

ValdikSS commented Jun 8, 2017

Doing this in a reliable and generic way is hard but not impossible. The principle should be similar to block-outside-dns. AFAIK AzireVPN client does this, maybe we should port the code from there.

@yegors
Copy link

yegors commented Jun 18, 2019

Windscribe VPN client has this feature, and it allows importing of custom configs. See here: https://blog.windscribe.com/windscribe-1-83-win-mac-changelog-6ae00c0e07cd

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

No branches or pull requests

4 participants